RFC: Move .plt after .text in x86-64 binaries
H.J. Lu
hjl.tools@gmail.com
Tue Nov 18 18:36:00 GMT 2014
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.
More information about the Gcc
mailing list