https://sourceware.org/bugzilla/show_bug.cgi?id=22842

--- Comment #9 from Rafael Ávila de Espíndola <rafael.espindola at gmail dot 
com> ---
(In reply to Cary Coutant from comment #8)
> I still believe that the linker is working as intended. If you want the
> address of the PLT entry, use the PLT32 reloc.

Why should -pie make a difference?

All 3 linker produce a plt entry without -pie.

This seems similar to the change to support copy relocations in pie
executables.

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Cary Coutant from comment #8)
> I still believe that the linker is working as intended. If you want the
> address of the PLT entry, use the PLT32 reloc.

You do get the same value at run-time and linker can resolve it without dynamic
relocation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to