Defining an alias of an IFUNC symbol must also create an IFUNC symbol. It makes no sense to define a normal FUNC symbol since calling it returns nonsense.
.text .type foo, @gnu_indirect_function .globl foo foo: .long 1 .size foo, .-foo .globl __foo .set __foo, foo Assembling this code leads to this symbol table in the file: 4: 0000000000000000 4 GNU_IFUNC GLOBAL DEFAULT 1 foo 5: 0000000000000000 4 FUNC GLOBAL DEFAULT 1 __foo This is with rawhide's 2.19.51.0.2-18.fc11. -- Summary: aliasing of IFUNC symbols broken Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: drepper at redhat dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10440 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils