[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17110] New: ld crash in _bfd_elf_find_segment_containing_section
From: |
rmansfield at qnx dot com |
Subject: |
[Bug ld/17110] New: ld crash in _bfd_elf_find_segment_containing_section with -relax |
Date: |
Thu, 03 Jul 2014 19:20:01 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17110
Bug ID: 17110
Summary: ld crash in _bfd_elf_find_segment_containing_section
with -relax
Product: binutils
Version: 2.25 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: rmansfield at qnx dot com
Target: sh4-unknown-linux-gnu
Created attachment 7678
--> https://sourceware.org/bugzilla/attachment.cgi?id=7678&action=edit
reduced testcase
Configured with --target=sh4-unknown-linux-gnu
$ ./gas/as-new ~/t.s -o t.o -relax
$ ./ld/ld-new t.o -relax
./ld/ld-new: warning: cannot find entry symbol _start; defaulting to 00400054
Segmentation fault (core dumped)
(gdb) bt
#0 0x08093aab in _bfd_elf_find_segment_containing_section (abfd=0x8147690,
section=0x8148a58) at ../../bfd/elf.c:3649
#1 0x0808728e in sh_elf_osec_to_segment (output_bfd=0x8147690, osec=0x8147750)
at ../../bfd/elf32-sh.c:3680
#2 0x0808c524 in sh_elf_relocate_section (output_bfd=0x8147690,
info=0xffffc4f8, input_bfd=0x8147690, input_section=0x8148a58,
contents=0x8159f98 "]", relocs=0x8149e38, local_syms=0x814a980,
local_sections=0x815a048) at ../../bfd/elf32-sh.c:3838
#3 0x0808fe83 in sh_elf_get_relocated_section_contents (output_bfd=0x8147690,
link_info=0xffffc4f8, link_order=0xffffc5a8, data=0x8159f98 "]",
relocatable=0, symbols=0x8149eac) at ../../bfd/elf32-sh.c:5592
#4 0x08085da9 in bfd_simple_get_relocated_section_contents (abfd=0x8147690,
sec=0x8148a58, outbuf=0x8159f98 "]", symbol_table=0x8149eac)
at ../../bfd/simple.c:270
#5 0x08081c57 in read_section (abfd=0x8147690,
sec=0x8119638 <dwarf_debug_sections+24>, syms=0x8149eac, offset=0,
section_buffer=0x814a1d8, section_size=0xffffc668)
at ../../bfd/dwarf2.c:526
#6 0x08084936 in _bfd_dwarf2_slurp_debug_info (abfd=0x8147690,
debug_bfd=0x8147690, debug_sections=0x8119620 <dwarf_debug_sections>,
symbols=0x8149eac, pinfo=0x8147990, do_place=1) at ../../bfd/dwarf2.c:3549
#7 0x08084ccc in find_line (abfd=0x8147690,
debug_sections=0x8119620 <dwarf_debug_sections>, section=0x8148788,
offset=8, symbol=0x0, symbols=0x8149eac, filename_ptr=0xffffc888,
functionname_ptr=0xffffc884, linenumber_ptr=0xffffc880,
discriminator_ptr=0x0, addr_size=0, pinfo=0x8147990)
at ../../bfd/dwarf2.c:3641
#8 0x08096259 in _bfd_elf_find_nearest_line_discriminator (abfd=0x8147690,
section=0x8148788, symbols=0x8149eac, offset=8, filename_ptr=0xffffc888,
functionname_ptr=0xffffc884, line_ptr=0xffffc880, discriminator_ptr=0x0)
at ../../bfd/elf.c:7692
#9 0x08096373 in _bfd_elf_find_nearest_line (abfd=0x8147690,
section=0x8148788, symbols=0x8149eac, offset=8, filename_ptr=0xffffc888,
functionname_ptr=0xffffc884, line_ptr=0xffffc880) at ../../bfd/elf.c:7661
#10 0x08062cc8 in vfinfo (fp=0xf7f8f960 <_IO_2_1_stderr_>,
fmt=0x80ec964 ": undefined reference to `%T'\n", arg=<optimized out>,
is_warning=1) at ../../ld/ldmisc.c:312
#11 0x08063579 in einfo (fmt=0x80ec960 "%X%C: undefined reference to `%T'\n")
at ../../ld/ldmisc.c:464
#12 0x0805d714 in undefined_symbol (info=0x8130d40 <link_info>,
name=0x8149c3a "trap", abfd=0x8147690, section=0x8148788, address=8,
error=1) at ../../ld/ldmain.c:1325
#13 0x0808c75a in sh_elf_relocate_section (output_bfd=0x813f100,
info=0x8130d40 <link_info>, input_bfd=0x8147690, input_section=0x8148788,
contents=0x814a8b8 "\"OCe", relocs=0x8149c4c, local_syms=0x814a980,
local_sections=0x8154fd8) at ../../bfd/elf32-sh.c:4123
#14 0x080af0cd in elf_link_input_bfd (flinfo=0xffffcd40, input_bfd=0x8147690)
at ../../bfd/elflink.c:9759
#15 0x080b0a16 in bfd_elf_final_link (abfd=0x813f100,
info=0x8130d40 <link_info>) at ../../bfd/elflink.c:10948
#16 0x0805f2c4 in ldwrite () at ../../ld/ldwrite.c:580
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/17110] New: ld crash in _bfd_elf_find_segment_containing_section with -relax,
rmansfield at qnx dot com <=
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, rmansfield at qnx dot com, 2014/07/03
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, rmansfield at qnx dot com, 2014/07/03
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, nickc at redhat dot com, 2014/07/08
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, nickc at redhat dot com, 2014/07/08
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, cvs-commit at gcc dot gnu.org, 2014/07/08
- [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax, rmansfield at qnx dot com, 2014/07/10