arm-linux-ld segment fault

4 views
Skip to first unread message

stranger...@netscape.net

unread,
Jul 6, 2008, 10:19:07 AM7/6/08
to Virtual Cogs
I am trying to compile the trivial hello work program
if I use arm-linux-gcc (arm-linux-gcc hello,c -o hello )all is fine
but of course its linked in the wrong place

using a copy of the ldscript from the virtualcogs web site

arm-linux-gcc -c hello.c -o hello.o
arm-linux-ld -g -lc -T ldscript -o main crt0.o hello.o

I get the following error
arm-linux-ld: BFD 2.16.90.0.3 20050510 assertion fail /home/src/
buildroot-0.9.27/buildroot/toolchain_build_arm/binutils-2.16.90.0.3/
bfd/elf32-arm.c:5869
Segmentation fault

I don't have this source tree, so its a bit surprising. The compiler
im using is from the virtualcogs website (crosstools-0.43)

if I use
arm-linux-ld -g -v -T ldscript -o main crt0.o hello.o
it will not compile because I use printf, but add -lc for the libc.a
library causes the problem

if I remove the ldscript everything works fine.

IS THERE ANYBODY THAT CAN TELL ME WHAT I'M DOING WRONG
many thanks chris
Reply all
Reply to author
Forward
0 new messages