bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/1540] internal error in elf_i386_copy_indirect_symbol() when lin


From: skunk at iskunk dot org
Subject: [Bug ld/1540] internal error in elf_i386_copy_indirect_symbol() when linking Qt program
Date: 25 Oct 2005 04:20:47 -0000

------- Additional Comments From skunk at iskunk dot org  2005-10-25 04:20 
-------
Okay, here goes nothing... 
 
----(begin)---- 
GNU ld version 051024 20051024 
 
Breakpoint 1, _bfd_abort ( 
    file=0x811350c "/mnt/freeport/src/binutils/current/bfd/elf32-i386.c",  
    line=792, fn=0x81135b2 "elf_i386_copy_indirect_symbol") 
    at /mnt/freeport/src/binutils/current/bfd/bfd.c:785 
785       if (fn != NULL) 
(gdb) up 
#1  0x08085830 in elf_i386_copy_indirect_symbol (bed=0x8113a80, dir=0xb0cffd4,  
    ind=0x8a701b8) at /mnt/freeport/src/binutils/current/bfd/elf32-i386.c:792 
792                 abort (); 
(gdb) print *eind 
$1 = {elf = {root = {root = {next = 0x84f6cbc,  
        string = 0x8a797c3 "address@hidden", hash = 590535349},  
      type = bfd_link_hash_indirect, u = {undef = {next = 0x8a70204,  
          abfd = 0xb0cffd4, weak = 0x0}, def = {next = 0x8a70204,  
          section = 0xb0cffd4, value = 0}, i = {next = 0x8a70204,  
          link = 0xb0cffd4, warning = 0x0}, c = {next = 0x8a70204,  
          p = 0xb0cffd4, size = 0}}}, indx = -1, dynindx = 164, got = { 
      refcount = 0, offset = 0, glist = 0x0, plist = 0x0}, plt = { 
      refcount = 1, offset = 1, glist = 0x1, plist = 0x1}, size = 7, type = 2,  
    other = 0, ref_regular = 1, def_regular = 0, ref_dynamic = 1,  
    def_dynamic = 0, ref_regular_nonweak = 1, dynamic_adjusted = 0,  
    needs_copy = 0, needs_plt = 0, non_elf = 0, hidden = 0, forced_local = 0,  
    mark = 0, non_got_ref = 1, dynamic_def = 1, dynamic_weak = 0,  
    pointer_equality_needed = 0, dynstr_index = 167, u = {weakdef = 0x0,  
      elf_hash_value = 0}, verinfo = {verdef = 0x0, vertree = 0x0},  
    vtable = 0x0}, dyn_relocs = 0x8a4d36c, tls_type = 0 '\0'} 
(gdb) print *edir 
$2 = {elf = {root = {root = {next = 0xadbcd58,  
        string = 0xb0cf010 "pthread_cond_signal@@GLIBC_2.0",  
        hash = 743843892}, type = bfd_link_hash_defined, u = {undef = { 
          next = 0xb0cffd4, abfd = 0xb0c8df4, weak = 0x1194}, def = { 
          next = 0xb0cffd4, section = 0xb0c8df4, value = 4500}, i = { 
          next = 0xb0cffd4, link = 0xb0c8df4,  
          warning = 0x1194 <Address 0x1194 out of bounds>}, c = { 
          next = 0xb0cffd4, p = 0xb0c8df4, size = 4500}}}, indx = -1,  
    dynindx = -1, got = {refcount = 0, offset = 0, glist = 0x0, plist = 0x0},  
    plt = {refcount = 1, offset = 1, glist = 0x1, plist = 0x1}, size = 100,  
    type = 2, other = 0, ref_regular = 1, def_regular = 0, ref_dynamic = 0,  
    def_dynamic = 1, ref_regular_nonweak = 1, dynamic_adjusted = 0,  
    needs_copy = 0, needs_plt = 0, non_elf = 0, hidden = 0, forced_local = 0,  
    mark = 0, non_got_ref = 1, dynamic_def = 0, dynamic_weak = 0,  
    pointer_equality_needed = 0, dynstr_index = 0, u = {weakdef = 0x0,  
      elf_hash_value = 0}, verinfo = {verdef = 0xb0cecf0,  
      vertree = 0xb0cecf0}, vtable = 0x0}, dyn_relocs = 0x99c64e0,  
  tls_type = 0 '\0'} 
(gdb) 
 
-------- 
 
address@hidden:~> readelf -sW /usr/lib/libpthread.so | grep pthread_cond_signal 
    42: 000054f4   100 FUNC    GLOBAL DEFAULT   12 
pthread_cond_signal@@GLIBC_2.0 
   278: 000054f4   100 FUNC    GLOBAL DEFAULT   12 pthread_cond_signal 
 
-------- 
 
(readelf|grep on the program's object files turns up nothing) 
 
address@hidden:~> nm -A <all *.a libraries used by program> | grep 
pthread_cond_signal 
/mnt/freeport/arch/linux32/lib/libxml2.a:threads.o:    U 
address@hidden 
/mnt/depot/tglib/linux32/lib/libtgthread.a:pthread_lock.o:    U 
pthread_cond_signal 
/mnt/depot/tglib/linux32/lib/libtgthread.a:tgnlock.o:    U pthread_cond_signal 
 
Interesting, the pthread symbol reference in the libxml2 library is versioned, 
and the other two are not.... 
 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1540

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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