From tuff-li at ti.com Fri Oct 13 10:47:27 2006 From: tuff-li at ti.com (Tuff) Date: Fri, 13 Oct 2006 18:47:27 +0800 Subject: warning: cannot find entry symbol _start? Message-ID: <740144EF5E05894CB744577EB445BBAF021BBD86@dqhe01.ent.ti.com> My hello.c is very very simple: #include 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: From dan at codesourcery.com Fri Oct 13 13:26:47 2006 From: dan at codesourcery.com (Daniel Jacobowitz) Date: Fri, 13 Oct 2006 09:26:47 -0400 Subject: [coldfire-gnu-discuss] warning: cannot find entry symbol _start? In-Reply-To: <740144EF5E05894CB744577EB445BBAF021BBD86@dqhe01.ent.ti.com> References: <740144EF5E05894CB744577EB445BBAF021BBD86@dqhe01.ent.ti.com> Message-ID: <20061013132646.GH13707@caradoc.them.org> On Fri, Oct 13, 2006 at 06:47:27PM +0800, Tuff wrote: > 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 I believe that you can not use the ColdFire toolchains without specifying a linker script (for the particular board you want to use). For instance, try adding "-T m5208evb-bdm.ld" or "-T m5208evb-dbug.ld". Take a look at chapter 3 of our manual (the Getting Started guide); there's a section on how to build applications with our tools. -- Daniel Jacobowitz CodeSourcery