This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
linker seg fault
- From: Will Wagner <will_wagner at carallon dot com>
- To: binutils at sourceware dot org
- Date: Tue, 28 Jun 2005 16:01:57 +0100
- Subject: linker seg fault
I am cross compiling to powerpc-eabi, building an eCos application. When
trying to link, ld segfaults.
I have tried cross compiling from both cygwin-i686 and linux-i686 and
get a seg fault on both platforms.
On cygwin I am using gcc 3.3.3 and ld 2.14. On linux I am using gcc
3.3.6 and ld 2.16.1.
The error under cygwin is:
powerpc-eabi-g++ -v -msoft-float -mcpu=860 -nostdlib -Wl,--gc-sections
-Wl,-static -Ttarget.ld -Lecos/lib -g -o bin/test
.elf tmp/main.o -lstdc++
Reading specs from
/opt/ecos/gnutools/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.3.3/specs
Configured with: /work/src/gcc-3.3.3/configure --target=powerpc-eabi
--prefix=/opt/ecos/gnutools/powerpc-eabi --enable-l
anguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --enable-threads
Thread model: generic
gcc version 3.3.3
/opt/ecos/gnutools/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.3.3/collect2.exe
--eh-frame-hdr -V -Qy -dn -Bstatic -o bin/t
est.elf -Lecos/lib
-L/opt/ecos/gnutools/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.3.3/nof
-L/opt/ecos/gnutools/powerpc-eab
i/lib/gcc-lib/powerpc-eabi/3.3.3
-L/opt/ecos/gnutools/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.3.3/../../../../powerpc-ea
bi/lib/nof
-L/opt/ecos/gnutools/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.3.3/../../../../powerpc-eabi/lib
--gc-sections -
static tmp/main.o -lstdc++ -Ttarget.ld
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make: *** [bin/test.elf] Error 1
I have a reasonably simple test case (380kb) which I could post here if
it is not too large. Alternatively can anyone suggests steps to take to
discover why it is falling over.
Many thanks,
Will Wagner