This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
arm-elf-ld 2.16.1 crash at bfd/elf32-arm.c:5536
- From: Shaun Jackman <sjackman at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 28 Jul 2005 17:29:08 -0600
- Subject: arm-elf-ld 2.16.1 crash at bfd/elf32-arm.c:5536
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
arm-elf-ld crashed while linking a project compiled with GCC 4.0.1.
$ arm-elf-gcc ...
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
It's a fairly large project and I haven't been able to boil it down to
a small test case yet, but here's the offending line and the
backtrace. I hope it's useful.
Please cc me in your reply. Cheers,
Shaun
$ gdb /usr/local/arm-elf/bin/ld core.21836
...
#0 0x0807784f in elf32_arm_compare_mapping (a=0x2ad0e788, b=0x2ad0e788)
at ../../bfd/elf32-arm.c:5536
5536 return ((const elf32_arm_section_map *) a)->vma
(gdb) p ((const elf32_arm_section_map *) a)
$1 = (const struct elf32_elf_section_map *) 0x2ad0e788
(gdb) p *((const elf32_arm_section_map *) a)
Cannot access memory at address 0x2ad0e788
(gdb) bt
#0 0x0807784f in elf32_arm_compare_mapping (a=0x2ad0e788, b=0x2ad0e788)
at ../../bfd/elf32-arm.c:5536
#1 0x0097d6a4 in _quicksort () from /lib/tls/libc.so.6
#2 0x0097dc40 in qsort () from /lib/tls/libc.so.6
#3 0x0807789a in elf32_arm_write_section (output_bfd=0x8900290,
sec=0x8a40424, contents=0x8c5fb78 "empty\nï\021\002")
at ../../bfd/elf32-arm.c:5562
#4 0x0808bf6b in elf_link_input_bfd (finfo=0xbff324f0, input_bfd=0x89cd050)
at ../../bfd/elflink.c:7356
#5 0x0808e64b in bfd_elf_final_link (abfd=0x8900290, info=0x80d9220)
at ../../bfd/elflink.c:8163
#6 0x08059dea in ldwrite () at ../../ld/ldwrite.c:554
#7 0x08057848 in main (argc=1, argv=0xbff32644) at ../../ld/ldmain.c:467