This segfault occurs with both 2.18 and 2.18.50.20080213, while 2.17 works fine. Here is gdb stack backtrace:
(gdb) run Starting program: /home/osv/try/sparc-elf/bin/ld -o main -L../linker -L/home/osv/firm/build/leon3/ecos/install/lib -L/home/osv/try/lib/gcc/sparc-elf/4.2.3/v8 -L/home/osv/try/lib/gcc/sparc-elf/4.2.3/../../../../sparc-elf/lib/v8 -L/home/osv/try/lib/gcc/sparc-elf/4.2.3 -L/home/osv/try/lib/gcc/sparc-elf/4.2.3/../../../../sparc-elf/lib -Map main.map -s -S --gc-sections -N -T std_avt.lnk <OBJECTS_LIST> --start-group -ltarget -lc -lm -lsupc++ --end-group -lgcc -lgcc -v GNU ld (GNU Binutils) 2.18.50.20080213 Program received signal SIGSEGV, Segmentation fault. make_abs () at ../../../binutils/ld/ldexp.c:138 138 expld.result.value += expld.result.section->vma; (gdb) bt #0 make_abs () at ../../../binutils/ld/ldexp.c:138 #1 0x08055b6f in lang_size_sections_1 (s=<value optimized out>, output_section_statement=0x919c578, prev=0x1, fill=0x0, dot=1611642024, relax=0x0, check_regions=0) at ../../../binutils/ld/ldlang.c:4821 #2 0x0805644f in one_lang_size_sections_pass (relax=0x0, check_regions=0) at ../../../binutils/ld/ldlang.c:4970 #3 0x080566c9 in strip_excluded_output_sections () at ../../../binutils/ld/ldlang.c:3499 #4 0x080653ab in gldelf32_sparc_before_allocation () at eelf32_sparc.c:1038 #5 0x08058ad0 in lang_process () at ../../../binutils/ld/ldlang.c:6062 #6 0x0805cbd5 in main (argc=152751196, argv=0xc4) at ../../../binutils/ld/ldmain.c:461 (gdb) p expld.result.section $1 = (asection *) 0x0 (gdb) Unfortunately I can't send all the object files to reproduce this, but hopefully I can aid in debugging, -- please let me know what can I do to help. -- Summary: Segfault in make_abs(). Product: binutils Version: 2.19 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: osv at javad dot com CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sparc-unknown-elf http://sourceware.org/bugzilla/show_bug.cgi?id=5763 ------- 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