Bug 12595 - STT_GNU_IFUNC in ET_EXEC crashes ld
Summary: STT_GNU_IFUNC in ET_EXEC crashes ld
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.22
: P2 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 15:41 UTC by Jan Kratochvil
Modified: 2011-03-21 14:54 UTC (History)
0 users

See Also:
Host:
Target: s390x-ibm-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2011-03-19 15:41:28 UTC
cat >2.c <<EOH
extern void gnu_ifunc (void);
int main (void) { gnu_ifunc (); return 0; }
EOH
cat >3.c <<EOH
asm (".type gnu_ifunc, @gnu_indirect_function");
void (*gnu_ifunc (void)) (void) { return 0; }
EOH
gcc 2.c 3.c

/usr/bin/ld: BFD version 2.20.51.0.2-5.19.el6 20091009 internal error, aborting at elf64-s390.c line 3193 in elf_s390_finish_dynamic_symbol
ld-new: BFD (GNU Binutils) 2.21.51.20110319 internal error, aborting at elf64-s390.c line 3204 in elf_s390_finish_dynamic_symbol

To be error-ing in gdb.base/gnu-ifunc.exp to be submitted these days.