Segmentation fault occuring with ld (sde-ld v2.15 (from MIPS techniologies inc.) and mips-elf-ld v2.16) and both i686-pc-linux (FC4) and i686-pc-cygwin
$ mips-elf-ld.exe -EL -mips32 -T ld.script -o test setup.o app2.o Segmentation fault (core dumped) I did a backtrace for mips-elf-ld 2.16 on cygwin Program received signal SIGSEGV, Segmentation fault. 0x00437433 in bfd_elf_final_link (abfd=0x6aaa18, info=0x4c9ec0) at elflink.c:7679 7679 if (elfsec != -1 (gdb) bt #0 0x00437433 in bfd_elf_final_link (abfd=0x6aaa18, info=0x4c9ec0) at elflink.c:7679 #1 0x00470d19 in _bfd_mips_elf_final_link (abfd=0x6aaa18, info=0x4c9ec0) at elfxx-mips.c:9534 #2 0x00414f43 in ldwrite () at ldwrite.c:554 #3 0x00412846 in main (argc=9, argv=0x6a3348) at .././ld/ldmain.c:469 it seems it depends on the ld.script (and object files). The ld.script that makes ld craching is: SECTIONS { ENTRY( __start ) . = 0xbfc00000; .text : { *(.text) ; _etext = . ; } . = 0xa0000000 + ( 0x100000 * 3 / 4 ) ; /* must match setup.S DATA_START */ _gp = .; _copystart = SIZEOF(.text) + ADDR(.text) ; .data : AT ( SIZEOF(.text) + ADDR(.text) ) { _data = . ; *(.data) *(.rdata) *(.rodata) *(.mdebug) *(.reginfo) ; *(.sdata) *(.scommon) ; _edata = . ; } _copyend = SIZEOF(.data) + SIZEOF(.text) + ADDR(.text) ; .bss : AT ( SIZEOF(.data) + SIZEOF(.text) + ADDR(.text) ) { _bss = . ; *(.bss) *(.sbss) *(COMMON) ; _ebss = . ; } _end = . ; } -- Summary: Segfault linking mips-elf binaries Product: binutils Version: 2.16 Status: NEW Severity: critical Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: aurelbu at free dot fr CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-* GCC host triplet: i686-pc-* GCC target triplet: mips-elf http://sourceware.org/bugzilla/show_bug.cgi?id=2267 ------- 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