This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: Move .plt after .text in x86-64 binaries


Hi,

Currently x86-64 linker generate binaries with branch overflow for
large text section size:

https://sourceware.org/bugzilla/show_bug.cgi?id=17592

It happens to small, medium and large models.  I will update linker
to check for branch overflow.  In the meantime, Michael suggested

http://www.sourceware.org/ml/binutils/2006-03/msg00276.html

place .plt after .text so that PLT is between text and GOT:

text
PLT
readonly data
GOT

instead of

PLT
text
readonly data
GOT

I implemented it on hjl/plt branch.  Any comments?

Roland, will it be a problem for NaCL?

Thanks.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]