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] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |