bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linker seg fault


From: Will Wagner
Subject: linker seg fault
Date: Tue, 28 Jun 2005 12:00:41 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I am cross compiling from cygwin-i686 to powerpc-eabi, building an eCos application. When trying to link, ld segfaults.

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


We are using ld version 2.14. I have attached a simple test case that exhibits the error. I'm guessing that there is some error with the options I'm passing to gcc, but ld just falling over doesn't make debugging easy.

Can anyone suggest why it is falling over.

Many thanks,

Will Wagner

Attachment: test.tar.bz2
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]