Relocations to use when eliding plts

Richard Henderson rth@redhat.com
Thu May 28 16:00:00 GMT 2015


On 05/28/2015 04:27 AM, H.J. Lu wrote:
> You get consecutive jmpq's because x86 PLT entry is used as the
> canonical function address.  If you compile main with -fno-plt -fPIE, you
> get:

Well, duh.  If the main executable has no PLTs, they aren't used as the
canonical function address.  Surely you aren't proposing that as a solution?


r~



More information about the Libc-alpha mailing list