This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

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


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.


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