Purpose of the elf/check-localplt test

Florian Weimer fweimer@redhat.com
Mon Jan 2 16:11:00 GMT 2017


What's the exact purpose of elf/check-localplt?

We do not want to use run-time relocations for calls within the same 
shared object on architectures which support efficient PC-relative 
calls.  We also want to avoid interposable symbol references.

But elf/check-localplt doesn't quite check these things.  For example, 
on x86_64, all X86_64_GLOB_DAT relocations are ignored.  Technically, 
this is perhaps correct because there is no PLT entry.  But checking 
things this way seems to provide rather limited value.

Thanks,
Florian



More information about the Libc-alpha mailing list