bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14980] New: internal error in elf_x86_64_relocate_section


From: hjl.tools at gmail dot com
Subject: [Bug ld/14980] New: internal error in elf_x86_64_relocate_section
Date: Fri, 21 Dec 2012 17:59:26 +0000

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: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


address@hidden ifunc-hidden]$ cat bar.c
extern int library_func2 (int)  __attribute__((visibility ("hidden")));

int
library_func (int x)
{
  return library_func2 (x);
}
address@hidden ifunc-hidden]$ cat bar2.c
extern int library_func2 (int)  __attribute__((visibility ("hidden")));

int
library_func1 (int x)
{
  return library_func2 (x);
}
address@hidden 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");
address@hidden 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
address@hidden 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]