warning: cannot find entry symbol _start?

Tuff tuff-li at ti.com
Fri Oct 13 10:47:27 UTC 2006


My hello.c is very very simple:

 

#include <stdio.h>

 

int main(void) {

   return 0;

}

 

And I compile it as below:

 

tmp # m68k-elf-gcc -o hello hello.c

/opt/eCos/toolchain/m68k-elf/bin/../lib/gcc/m68k-elf/4.1.0/../../../../m
68k-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to
80000080

tmp #

tmp #

 

If I use the static parameter, I got:

 

tmp # m68k-elf-gcc -static -o hello hello.c

/opt/eCos/toolchain/m68k-elf/bin/../lib/gcc/m68k-elf/4.1.0/../../../../m
68k-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to
80000080

tmp #

 

And if:

 

That is why? What is happen? 

Some hint or some instruction is appreciated.

 

Thank you very much.

 

Best Regards,

Tuff Li

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20061013/61ed18ed/attachment.html>


More information about the coldfire-gnu-discuss mailing list