Page 1 of 1

32x toolchain: cannot find entry symbol _start ?

Posted: Sat May 31, 2014 12:25 am
by djcouchycouch
I'm messing around and compiling Chilly Willy's 32x examples and little tests I'm making and I've just now noticed warnings in the output that I don't remember seeing at first.

Code: Select all

/opt/toolchains/sega/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional -o m68k_crt0.o m68k_crt0.s
/opt/toolchains/sega/m68k-elf/bin/m68k-elf-ld -T /opt/toolchains/sega/ldscripts/md.ld --oformat binary -o m68k_crt0.bin m68k_crt0.o
C:\MinGW\msys\1.0\opt\toolchains\sega\m68k-elf\bin\m68k-elf-ld.exe: warning: cannot find entry symbol _start; defaulting to 00000000
/opt/toolchains/sega/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional -o m68k_crt1.o m68k_crt1.s
/opt/toolchains/sega/m68k-elf/bin/m68k-elf-ld -T /opt/toolchains/sega/ldscripts/md.ld --oformat binary -o m68k_crt1.bin m68k_crt1.o
C:\MinGW\msys\1.0\opt\toolchains\sega\m68k-elf\bin\m68k-elf-ld.exe: warning: cannot find entry symbol _start; defaulting to 00000000
I don't think I've modified any of the *.s files that came with Chilly Willy's 32x exemples. So I don't know if this is "normal" or not. I even went and redownloaded the original examples and I get the same thing.

My programs still build and seem to run correctly. Is this a problem even if it's just a warning?

thanks!
djcc

Posted: Sat May 31, 2014 6:13 pm
by Chilly Willy
You can ignore that. The linker scripts are set to import the standard _start entry point for regular programs, and that doesn't exist on the MD rom... it isn't needed as the rom header sets the entry point as the reset vector. So it's a warning that's safe to ignore.