PING: [PATCH] Add --enable-static-pie to build static PIE

H.J. Lu hjl.tools@gmail.com
Wed Sep 27 21:16:00 GMT 2017


On 9/27/17, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
> On 27/09/17 11:55, Florian Weimer wrote:
>> On 09/27/2017 10:30 AM, H.J. Lu wrote:
>>>> would an architecture need or not need architecture-specific configure
>>>> changes, etc.), and have you tried a build-many-glibcs.py run with this
>>>> option passed to all the builds to see how other architectures do?  Why
>>
>>> build-many-glibcs.py has no regressions.
>>
>> On which tree?  I think commit 6cd380dd366d728da9f579eeb9f7f4c47f48e474
>> added absolute relocations to the
>> startup code, which I expect will not work for static PIE.
>>
>
> i'd expect the Scrt1.o to be used for PIE which have no ABS relocs
> however it can have RELATIVE relocs if GOT entries are used i think
> (even on x86_64).

x86--64 and i686 are OK.  You may need to update your start.S to avoid
dynamic relocations in static PIE.

-- 
H.J.



More information about the Libc-alpha mailing list