https://sourceware.org/bugzilla/show_bug.cgi?id=18808
Bug ID: 18808 Summary: aborting at /export/gnu/import/git/sources/binutils-gdb/bfd/elf64- x86-64.c:3791 in elf_x86_64_relocate_section Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- On Linux/x86-64, I got [hjl@gnu-6 ifunc-6]$ cat x.c int foo (int x) __attribute__ ((ifunc ("resolve_foo"))); extern void abort (void); static int foo_impl(int x) { return x; } int bar() { int (*f)(int) = foo; if (foo (5) != 5) abort (); if (f(42) != 42) abort (); } void *resolve_foo (void) { return (void *) foo_impl; } [hjl@gnu-6 ifunc-6]$ cat main.c void bar(void); int main(void) { bar(); return 0; } [hjl@gnu-6 ifunc-6]$ make /usr/gcc-4.8.4-x32/bin/gcc -B./ -O2 -g -c -o main.o main.c /usr/gcc-4.8.4-x32/bin/gcc -B./ -O2 -g -fpic -c -o x.o x.c ./ld -shared -o libx.so x.o ./ld: BFD (GNU Binutils) 2.25.51.20150811 internal error, aborting at /export/gnu/import/git/sources/binutils-gdb/bfd/elf64-x86-64.c:3791 in elf_x86_64_relocate_section ./ld: Please report this bug. Makefile:35: recipe for target 'libx.so' failed make: *** [libx.so] Error 1 [hjl@gnu-6 ifunc-6]$ -- 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