problem linking for arm-elf
Christian Narvaez
nac@hta-bi.bfh.ch
Wed Jun 4 14:23:00 GMT 2003
Hi everybody,
I am having some problems linking for arm-elf.
Everything goes ok when the program is simple and I don't include
libraries like stdlib.h.
I built the toolchein following the instructions on sources.redhat.com.
I tried to compile without my ld script and it goes succeeds, but when I
use my own ld and crt0 this is what happens:
arm-elf-gcc -g -gdwarf -c -o crt0.o crt0.S
arm-elf-gcc -g -c -gdwarf -o MyRSA.o MyRSA.c
arm-elf-gcc -Wall -g -O0 -c -o mpi.o mpi.c
arm-elf-gcc -nostartfiles -g crt0.o MyRSA.o mpi.o -Tarmebs_ldscript -o
rsa.exe
/gnutools/lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/lib/libg.a(sysca
lls.o): In function `_sbrk':
/home/nac/src/gcc-3.2.1/newlib/libc/sys/arm/syscalls.c:499: undefined
reference to `end'
collect2: ld returned 1 exit status
make: *** [rsa.exe] Error 1
Can anybody help me?
Christian
More information about the Gcc-help
mailing list