[Bug ld/830] New: GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap
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
[Bug binutils/829] New: Why is gcc -static required to avoid "gprof: gmon.out file is missing call-graph data" error?
I don't know whether this is a genuine bug, or something that the manual doesn't explain (it doesn't) but I see: $ gcc -pg -g -c main.c $ gcc -o a.out main.o -pg $ ./a.out $ gprof gprof: gmon.out file is missing call-graph data $ If I then add '-static' to the second gcc, all is well. (The contents of main.c seem to be irrelevant.) -- Summary: Why is gcc -static required to avoid "gprof: gmon.out file is missing call-graph data" error? Product: binutils Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: john at cs dot york dot ac dot uk CC: bug-binutils at gnu dot org,john at cs dot york dot ac dot uk http://sources.redhat.com/bugzilla/show_bug.cgi?id=829 --- 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
[Bug ld/830] GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap
--- Additional Comments From ebotcazou at libertysurf dot fr 2005-04-06 17:55 --- Subject: Re: New: GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap > 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. http://gcc.gnu.org/install/specific.html section *-*-solaris2*. GCC 4.0.0pre bootstraps fine with both patched 2.15 and 2.16pre. -- 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
Re: [Bug ld/830] New: GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap
> 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. http://gcc.gnu.org/install/specific.html section *-*-solaris2*. GCC 4.0.0pre bootstraps fine with both patched 2.15 and 2.16pre. -- Eric Botcazou ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/830] GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap
--- Additional Comments From jbuck at welsh-buck dot org 2005-04-06 21:07 --- Thanks for the pointer, I just upgraded my binutils and didn't notice that item. It's kind of embarrassing, though, as 4.0 is about to ship. Any chance that the binutils people might consider a point release (2.15.1) with only critical bug fixes? -- 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
[Bug ld/831] New: Get assert in ld
arm-elf-ld: BFD 2.15 assertion fail ../../binutils-2.15/bfd/linker.c:619 I recently changed an ldscript to use a MEMORY section and now get the above message though the linking completes successfully. -- Summary: Get assert in ld Product: binutils Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: charles dot manning at trimble dot co dot nz CC: bug-binutils at gnu dot org http://sources.redhat.com/bugzilla/show_bug.cgi?id=831 --- 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
[Bug ld/830] GNU ld 2.15 dumps core during gcc 4.0-pre bootstrap
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-07 06:36 --- > It's kind of embarrassing, though, as 4.0 is about to ship. Any chance that > the > binutils people might consider a point release (2.15.1) with only critical bug > fixes? Nothing really new, GCC 3.4.x cannot be bootstrapped with 2.15 either. And 2.16 is about to be released anyway. -- 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
[Bug binutils/829] Why is gcc -static required to avoid "gprof: gmon.out file is missing call-graph data" error?
--- Additional Comments From amodra at bigpond dot net dot au 2005-04-07 06:54 --- No target or gcc version specified, and likely a gcc/library problem. -- What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID http://sources.redhat.com/bugzilla/show_bug.cgi?id=829 --- 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