This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
segmentation fault with ld option -R
- From: "H Girard" <hgirard at broadbandnetdevices dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Tue, 9 Apr 2002 09:26:28 -0400
- Subject: segmentation fault with ld option -R
- Organization: Bnd Radiocom
- Reply-to: "H Girard" <hgirard at broadbandnetdevices dot com>
Any hint of what could cause this error ??? ld was used with option -R
filename where filename was a previously linked executable that contains
hopefully all of the missing references . Platform is cygwin (release
.1.3.9) on winnt . Searching through this list I find that several others
reported the segmentation error with cygwin.
without the -R it produces missing references that i was hoping would be
picked up in the file redboot.elf
error message :
collect2: ld terminated with signal 11 [Segmentation fault]
0 [main] ld 1002 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
86810 [main] ld 1002 stackdump: Dumping stack trace to ld.exe.stackdump
extract from script:
mipsisa32-elf-gcc -$gccopt -v -Wl,-nodefaultlibs -Wl,-nostdlib -Wl-nostartf
iles \
-L$PKG_INSTALL_DIR/lib \
-Wl,-R/redbootdir/output/install/bin/redboot.elf \
-Wl,--gc-sections -Wl,-Map,hello.map -Wl,-ohello.out hello.o \
-T /applicationdir/linker_script/r2c2_target.ld
thanks
Henri