segmentation fault with ld option -R
H Girard
hgirard@broadbandnetdevices.com
Tue Apr 9 06:26:00 GMT 2002
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
More information about the Binutils
mailing list