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


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