About mips-elf-ld (newlib)

Alexander Stante mrpac@gmx.de
Wed Jul 7 10:44:00 GMT 2004

libra wrote:
> The error message is that:
> /tools/mips/H-i686-pc-cygwin/lib/gcc/mips-elf/3.5.0/../../../../mips-
> elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 
> 0000000000400040
Did you wrote your own crt0? Check if there is the entry point _start in
it. You can also change the entry point in your linkskript with

> /cygdrive/c/DOCUME~1/libra/LOCALS~1/Temp/ccYfspyO.o(.text+0x3c): In function 
> `main':
> : undefined reference to `printf'
> collect2: ld returned 1 exit status
It is a bit hard to tell what cause this problem because you didn't
supplied the command line with which you compiled you program. You used
the -lc switch to use libc but maybe at the wrong position. Try using it
at last argument.


More information about the Newlib mailing list