This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] aarch64: Check PIC instead of SHARED in start.S
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, nd at arm dot com
- Date: Mon, 2 Oct 2017 04:20:25 -0700
- Subject: Re: [PATCH] aarch64: Check PIC instead of SHARED in start.S
- Authentication-results: sourceware.org; auth=none
- References: <20170929213203.GG2482@gmail.com> <59D2102A.8090106@arm.com>
On 10/2/17, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
> On 29/09/17 22:32, H.J. Lu wrote:
>> Since start.o may be compiled as PIC, we should check PIC instead of
>> SHARED.
>>
>> OK for master?
>>
>
> i believe that the compile/link tests worked..
Does static PIE of hjl/pie/static branch run on arm and aarch64?
> ..but i still don't understand how the GOT entries
> of the startup code get initialized in PIE executable
> at runtime.
You just avoid GOT entries in start.S for static PIE by using
PC relative relocations.
--
H.J.