public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* arm-elf-ld 2.16.1 crash at bfd/elf32-arm.c:5536
@ 2005-07-28 23:29 Shaun Jackman
  2005-07-29  0:42 ` Shaun Jackman
  0 siblings, 1 reply; 19+ messages in thread
From: Shaun Jackman @ 2005-07-28 23:29 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-03-09 17:21 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 23:29 arm-elf-ld 2.16.1 crash at bfd/elf32-arm.c:5536 Shaun Jackman
2005-07-29  0:42 ` Shaun Jackman
2005-07-29 13:47   ` Nick Clifton
2005-07-30  1:27     ` Shaun Jackman
2005-07-30 12:43       ` Nick Clifton
2005-07-30 22:17     ` Shaun Jackman
2005-07-31 18:49       ` Nick Clifton
2005-08-01 20:38         ` Shaun Jackman
2005-08-02  8:19           ` Nick Clifton
2005-08-05 22:03             ` Paul Brook
2005-08-07  9:14               ` Nick Clifton
2005-08-07 12:32                 ` Paul Brook
2005-08-08 11:10                   ` Nick Clifton
2006-03-08 22:17                     ` Shaun Jackman
2006-03-09 16:58                       ` Nick Clifton
2006-03-09 17:21                         ` Daniel Jacobowitz
2005-08-02  8:24           ` Nick Clifton
2006-03-08 21:43             ` Shaun Jackman
2006-03-09 16:56               ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).