This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
problem linking for arm-elf
- From: "Christian Narvaez" <nac at hta-bi dot bfh dot ch>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 4 Jun 2003 16:25:09 +0200
- Subject: problem linking for arm-elf
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