This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: About mips-elf-ld (newlib)
- From: Alexander Stante <mrpac at gmx dot de>
- To: libra <mr924352 at cs dot nthu dot edu dot tw>
- Cc: newlib at sources dot redhat dot com
- Date: Wed, 07 Jul 2004 11:33:36 +0200
- Subject: Re: About mips-elf-ld (newlib)
- References: <1089181473.40eb97218e70d@webmail.cs.nthu.edu.tw>
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
ENTRY(_MyEntryPoint)
> /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.
Bye
Alex