Problems with arm-elf-ld
Jonathan Larmour
jlarmour@redhat.com
Sun Apr 1 00:00:00 GMT 2001
igor.trevisan@virgilio.it wrote:
> > /Tools/Xgcc-arm/xgcc/bin/arm-elf-ld: warning: cannot find entry
> symbol start; defaulting to 02000000
You should provide the symbol start in your crt0.s
> > prova1.o: In function `main':
> > /home/mp3/prova1.c:6: undefined reference to `__gccmain'
> > /home/mp3/prova1.c:11: undefined reference to `printf'
> > /home/mp3/prova1.c:15: undefined reference to `printf'
You should add "-lgcc -lc -lgcc" to your link line.
Or it may be better to link with:
arm-elf-gcc -Tarmelf.x -Wl,-Map,exe.map -o exe.elf *.o -nostartfiles
The -nostartfiles should stop gcc trying to link with newlib's crt0.o.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list