This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem linking for arm-elf


Sorry, this should have been a cc to gcc-help

vincent.rubiolo@st.com wrote:

Hello Christian,

Did you try to make a google search with your error message?
One of the links you would find is : http://crossgcc.billgatliff.com/crossgccfaq/x155.html


This is Bill Gatliff's excellent site on the subject along with the crossgcc FAQ.

I leave the other pointer to your discretion

Cheers,

vincent

nac@hta-bi.bfh.ch wrote:

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




------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]