32x toolchain: cannot find entry symbol _start ?

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

32x toolchain: cannot find entry symbol _start ?

Post by djcouchycouch » Sat May 31, 2014 12:25 am

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

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Sat May 31, 2014 6:13 pm

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.

Post Reply