------- Additional Comments From ldv at altlinux dot org 2006-03-13 23:44 ------- Even more simple test causes ld to crash in BFD: $ g++ -shared -Wl,--as-needed -Wl,--whole-archive `gcc -print-file-name=libsupc++.a` -Wl,--no-whole-archive collect2: ld terminated with signal 11 [Segmentation fault] /usr/bin/ld: BFD 2.16.91.0.6 20060212 assertion fail elflink.c:2317 /usr/bin/ld: BFD 2.16.91.0.6 20060212 assertion fail elflink.c:2318 [last two lines repeated 149 times]
$ gdb ld-debug [...] (gdb) r --as-needed --eh-frame-hdr -m elf_i386 -shared --whole-archive `gcc -print-file-name=libsupc++.a` --no-whole-archive `gcc -print-file-name=libstdc++.so` [...] Program received signal SIGSEGV, Segmentation fault. 0x00142c09 in bfd_putl32 (data=64168, p=0x0) at libbfd.c:706 706 addr[0] = data & 0xff; (gdb) bt #0 0x00142c09 in bfd_putl32 (data=64168, p=0x0) at libbfd.c:706 #1 0x001611b3 in bfd_elf32_swap_reloc_out (abfd=0x80aac28, src=0xbfffe1a0, d=0x0) at elfcode.h:408 #2 0x0015d7e4 in elf_i386_relocate_section (output_bfd=0x80aac28, info=0x80a0d20, input_bfd=0x81049f0, input_section=0x8163e0c, contents=0x8317828 "\b", relocs=0x81767cc, local_syms=0x81c1298, local_sections=0x831edf8) at elf32-i386.c:2666 #3 0x0018061b in elf_link_input_bfd (finfo=0xbfffe460, input_bfd=0x81049f0) at elflink.c:7142 #4 0x001828fb in bfd_elf_final_link (abfd=0x80aac28, info=0x80a0d20) at elflink.c:8212 #5 0x08060a50 in ldwrite () at ldwrite.c:557 #6 0x0805e0b1 in main (argc=10, argv=0xbfffe594) at .././ld/ldmain.c:468 -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical Summary|ld --as-needed causes BFD |ld --as-needed causes either |internal error |crash or BFD internal error http://sourceware.org/bugzilla/show_bug.cgi?id=2434 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils