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: Why is _dl_relocate_static_pie linked into crt1.o?


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."


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