This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
SIGSEGV in ld at elflink.h:5500
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: amodra at bigpond dot net dot au (Alan Modra)
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 16 Jul 2002 15:16:44 -0400 (EDT)
- Subject: SIGSEGV in ld at elflink.h:5500
I started trying to get dwarf2 eh working on hppa64-hp-hpux. I am
seeing a segmentation fault in gld linking the libstdc++-v3 shared
library. This is the section data which causes the fault:
(gdb) p *s
$2 = {name = 0x8000000000240035 ".gnu.linkonce.t._ZTv0_n24_NSdD1Ev", id = 478,
index = 46, next = 0x8000000000246900, flags = 1049143, user_set_vma = 1,
reloc_done = 0, linker_mark = 0, linker_has_input = 0, gc_mark = 0,
segment_mark = 0, vma = 0, lma = 0, _cooked_size = 56, _raw_size = 56,
output_offset = 0, output_section = 0x8000000000005340, alignment_power = 3,
relocation = 0x0, orelocation = 0x0, reloc_count = 1, filepos = 127080,
rel_filepos = 204960, line_filepos = 0, userdata = 0x0, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, comdat = 0x0,
moving_line_filepos = 0, target_index = 0, used_by_bfd = 0x8000000000247698,
constructor_chain = 0x0, owner = 0x80000000000d7998,
symbol = 0x8000000000247638, symbol_ptr_ptr = 0x80000000002468c8,
link_order_head = 0x0, link_order_tail = 0x0}
(gdb) p *s->output_section
$3 = {name = 0x40000000000b0550 "*ABS*", id = 2, index = 0, next = 0x0,
flags = 0, user_set_vma = 0, reloc_done = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 1, segment_mark = 0, vma = 0, lma = 0,
_cooked_size = 0, _raw_size = 0, output_offset = 0,
output_section = 0x8000000000005340, alignment_power = 0, relocation = 0x0,
orelocation = 0x0, reloc_count = 0, filepos = 0, rel_filepos = 0,
line_filepos = 0, userdata = 0x0, contents = 0x0, lineno = 0x0,
lineno_count = 0, entsize = 0, comdat = 0x0, moving_line_filepos = 0,
target_index = 0, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x0,
symbol = 0x80000000000050d8, symbol_ptr_ptr = 0x8000000000005338,
link_order_head = 0x0, link_order_tail = 0x0}
This is the code that faults:
sym.st_shndx =
elf_section_data (s->output_section)->this_idx;
The "elf_section_data" macro returns a null pointer.
Anybody got any ideas on what's causing this?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)