http://sourceware.org/bugzilla/show_bug.cgi?id=14980
Bug #: 14980
Summary: internal error in elf_x86_64_relocate_section
Product: binutils
Version: 2.24 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
[hjl@gnu-6 ifunc-hidden]$ cat bar.c
extern int library_func2 (int) __attribute__((visibility ("hidden")));
int
library_func (int x)
{
return library_func2 (x);
}
[hjl@gnu-6 ifunc-hidden]$ cat bar2.c
extern int library_func2 (int) __attribute__((visibility ("hidden")));
int
library_func1 (int x)
{
return library_func2 (x);
}
[hjl@gnu-6 ifunc-hidden]$ cat foo.c
static int zero (void) { return 0; }
void * library_func2_ifunc (void) __asm__ ("library_func2")
__attribute__((visibility ("hidden")));
void * library_func2_ifunc (void) { return zero ; }
__asm__(".type library_func2, %gnu_indirect_function");
[hjl@gnu-6 ifunc-hidden]$ make
gcc -fPIC -c -o bar.o bar.c
gcc -c -o bar2.o bar2.c
gcc -fPIC -c -o foo.o foo.c
./ld --shared -o libfoo.so -z nocombreloc bar.o bar2.o foo.o
./ld: BFD (GNU Binutils) 2.23.51.20121221 internal error, aborting at
/export/gnu/import/git/binutils/bfd/elf64-x86-64.c line 3285 in
elf_x86_64_relocate_section
./ld: Please report this bug.
make: *** [libfoo.so] Error 1
[hjl@gnu-6 ifunc-hidden]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils