https://sourceware.org/bugzilla/show_bug.cgi?id=23937
Bug ID: 23937 Summary: powerpc64le local ifunc IRELATIVE relocs are wrong Product: binutils Version: 2.32 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: amodra at gmail dot com Target Milestone: --- With a brand new binutils and gcc, when I compile gcc/testsuite/gcc.dg/attr-ifunc-4.c I see the call to magic() in main() going via a plt stub. There's an IRELATIVE reloc on the .iplt entry used by the stub. That's all as expected but the IRELATIVE reloc points at resolver+8. It should point at resolver+0. As it is, when ld.so calls the resolver func r2 will have ld.so's TOC pointer value and thus calculate the wrong offset to implementation(). -- 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