[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23937] New: powerpc64le local ifunc IRELATIVE relocs are wrong
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/23937] New: powerpc64le local ifunc IRELATIVE relocs are wrong |
Date: |
Thu, 29 Nov 2018 22:03:19 +0000 |
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 ld/23937] New: powerpc64le local ifunc IRELATIVE relocs are wrong,
amodra at gmail dot com <=