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

2014-11-18 Thread H.J. Lu
One issue with text PLT readonly data GOT layout is it uses smaller data size for larger text size since the layout with data is text PLT readonly data GOT data The data size is reduced by PLT size. If PLT is very large, impact may be visible. -- H.J.

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

2014-11-18 Thread Roland McGrath
The relative order of multiple executable sections inside the executable segment (distinct from nonexecutable read-only segment) is not important to NaCl.

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

2014-11-18 Thread H.J. Lu
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.