I get a core dump when trying to build gcc from the 4.0 release branch on sparc-sun-solaris2.8 with the 2.15 binutils for as and ld.
The core dump is in the command stage1/xgcc -Bstage1/ -B/u/jbuck/cvs.sol2/4_0_branch/sparc-sun-solaris2.8/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genattrtab \ build/genattrtab.o build/genautomata.o \ build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o build/insn-conditions.o build/print-rtl.o build/errors.o \ build/varray.o ../build-sparc-sun-solaris2.8/libiberty/libiberty.a -lm collect2: ld terminated with signal 11 [Segmentation Fault], core dumped The immediate cause of the crash is a null pointer dereference in elf_sort_symbol: #0 elf_sort_symbol (arg1=0x0, arg2=0xf7700) at ../../binutils-2.15/bfd/elflink.c:2698 2698 vdiff = h1->root.u.def.value - h2->root.u.def.value; (gdb) p h1 $1 = (struct elf_link_hash_entry *) 0x0 (gdb) p h2 $2 = (struct elf_link_hash_entry *) 0xf7700 The full backtrace is #0 elf_sort_symbol (arg1=0x0, arg2=0xf7700) at ../../binutils-2.15/bfd/elflink.c:2698 #1 0xff2cb7f4 in qsort () #2 0x5d724 in elf_link_add_object_symbols (abfd=0x265ec0, info=0xea958) at ../../binutils-2.15/bfd/elflink.c:3919 #3 0x5e14c in bfd_elf_link_add_symbols (abfd=0x1, info=0x287ac8) at ../../binutils-2.15/bfd/elflink.c:4384 #4 0x22878 in load_symbols (entry=0xeee58, place=0xffbed458) at ../../binutils-2.15/ld/ldlang.c:1475 #5 0x230e0 in open_input_bfds (s=0xeee58, force=0) at ../../binutils-2.15/ld/ldlang.c:1888 #6 0x26640 in lang_process () at ../../binutils-2.15/ld/ldlang.c:4172 #7 0x29684 in main (argc=658432, argv=0xa0c00) at ../../binutils-2.15/ld/ldmain.c:466 -- Summary: GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap Product: binutils Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: jbuck at welsh-buck dot org CC: bug-binutils at gnu dot org GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://sources.redhat.com/bugzilla/show_bug.cgi?id=830 ------- 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