Why is _dl_relocate_static_pie linked into crt1.o?

Florian Weimer fweimer@redhat.com
Thu Jul 5 14:36:00 GMT 2018


On 07/05/2018 02:07 PM, H.J. Lu wrote:
> No idea why _DYNAMIC isn't used on arm.

Didn't you write the patch?

The adr pseudo-instruction can only use an immediate without any 
relocation (even link-time relocations are not allowed).  That's why a 
symbol in the current function has to be used here (hoping that the 
offset is not too large).  A hidden external symbol does not work here.

I have no idea whether adrl instead of adr could be used here.  The 
whole thing is rather iffy IMHO, but that's not surprising because it 
must work before self-relocation has been performed.

Thanks,
Florian



More information about the Libc-alpha mailing list