bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/6511] segmentation fault building final object


From: frediano dot ziglio at vodafone dot com
Subject: [Bug ld/6511] segmentation fault building final object
Date: 22 May 2008 11:29:27 -0000

------- Additional Comments From frediano dot ziglio at vodafone dot com  
2008-05-22 11:29 -------

> 
> It does not core dump for me ....  Can you send me the entire linker 
> command line that you are using when the seg-fault occurs ?
> 

Oh... I changed code adding a core if "invalid string offset", removed it give 

$ hppa64-hp-hpux11.00-ld -shared ct.o ctutil.o
hppa64-hp-hpux11.00-ld: ctutil.o: invalid string offset 1734672384 >= 27 for
section `.strtab'

So it does not core... however I'm still thinking about symoffset, I added that
line and after core bt gave 

#0  0x080a7fe7 in bfd_elf_string_from_elf_section (abfd=0x8168130, shindex=9,
strindex=1734672384) at ../../../src/binutils-2.18/bfd/elf.c:318
#1  0x080bd6c0 in bfd_elf_link_record_local_dynamic_symbol (info=0x8141de0,
input_bfd=0x8168130, input_indx=8)
    at ../../../src/binutils-2.18/bfd/elflink.c:636
#2  0x0809f96b in allocate_global_data_opd (dyn_h=0x8154e30, data=0xbf89cd98) at
../../../src/binutils-2.18/bfd/elf64-hppa.c:1150
#3  0x08088462 in bfd_hash_traverse (table=0x814e4dc, func=0x809f828
<allocate_global_data_opd>, info=0xbf89cd98)
    at ../../../src/binutils-2.18/bfd/hash.c:583
#4  0x0809e42c in elf64_hppa_dyn_hash_traverse (table=0x814e4dc, func=0x809f828
<allocate_global_data_opd>, info=0xbf89cd98)
    at ../../../src/binutils-2.18/bfd/elf64-hppa.c:357
#5  0x080a062d in elf64_hppa_size_dynamic_sections (output_bfd=0x814dc48,
info=0x8141de0) at ../../../src/binutils-2.18/bfd/elf64-hppa.c:1679
#6  0x080c7cc6 in bfd_elf_size_dynamic_sections (output_bfd=0x814dc48,
soname=0x0, rpath=0xbf89ee5c "/home/winnt/fziglio/install/lib", 
filter_shlib=0x0,
    auxiliary_filters=0x0, info=0x8141de0, sinterpptr=0xbf89cffc, verdefs=0x0)
at ../../../src/binutils-2.18/bfd/elflink.c:5673
#7  0x0806ea6b in gldelf64hppa_before_allocation () at
../../../src/binutils-2.18/ld/emultempl/elf32.em:1403
#8  0x080673e6 in ldemul_before_allocation () at
../../../src/binutils-2.18/ld/ldemul.c:78
#9  0x0805cfdd in lang_process () at ../../../src/binutils-2.18/ld/ldlang.c:5784
#10 0x0806108e in main (argc=4, argv=0xbf89d1c4) at
../../../src/binutils-2.18/ld/ldmain.c:459

(I don't know if this can help you). symoffset came from allocate dynamic
section however why an output symbol should change how the symbols from source
file is read?? Well.. I have to say that I don't know so much linker internals
and elf structure but it seems strange. Note also that check for symbol boundary
is done only on second read (see bfd_elf_get_elf_syms, just after pos 
computation)

Frediano


-- 


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

------- 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]