warning: cannot find entry symbol _start?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning: cannot find entry symbol _start?



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