Why is _dl_relocate_static_pie linked into crt1.o?

Andreas Schwab schwab@suse.de
Thu Jul 5 12:24:00 GMT 2018


On Jul 05 2018, Florian Weimer <fweimer@redhat.com> wrote:

> I assume the intent here is that other code can be shared between PIE and
> non-PIE executables.  However, it's not clear to me why the symbol
> _dl_relocate_static_pie has to be used in the address calculation.

Which address calculation?

> If there's another symbol which is present in shared and static-PIE
> builds alike, wouldn't that avoid the need for defining
> _dl_relocate_static_pie in shared builds?

I don't understand the reference to shared builds.  crt0.o isn't used in
shared libraries either.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Libc-alpha mailing list