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

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


On 9/27/17, Florian Weimer <fweimer@redhat.com> 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

I used hjl/pie/static branch.

> added absolute relocations to the startup code, which I expect will not
> work for static PIE.
>

It may need something like

commit 1e8e527dd9718eaebe8417b73befb0c821b7b327
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Aug 4 12:59:35 2017 -0700

    i386: Support static PIE in start.S

    Since start.o may be compiled as PIC, we should check PIC instead of
    SHARED.  Also avoid dynamic relocation against main in static PIE since
    _start is the entry point before the executable is relocated.

            * sysdeps/i386/start.S (_start): Check Check PIC instead of

-- 
H.J.



More information about the Libc-alpha mailing list