warning: cannot find entry symbol _start?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warning: cannot find entry symbol _start?
- To: <coldfire-gnu-discuss@xxxxxxxxxxxxxxxx>
- Subject: warning: cannot find entry symbol _start?
- From: "Tuff" <tuff-li@xxxxxx>
- Date: Fri, 13 Oct 2006 18:47:27 +0800
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