#4061 - rome - Mon Mar 17, 2003 2:01 pm
i?m trying compile Gbadev with crt0.S v1.26 by Jeff Frohwein, in my gba C plus plus project.
the project has only 4 files. gba.c and crt0.s (linkscript file of course)
crtbegin.o and crtend.o to cplus cplus projects
i wanna compile just to test if interrupts are enabled. but when i compile it gets a warning:
/cygdrive/c/DEVKIT~1/BIN/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-agb-el
f/bin/ld: warning: cannot find entry symbol _start; defaulting to 08000000
what?s wrong? the elf files wasnt created :(
see below whats done in makefile:
the project has only 4 files. gba.c and crt0.s (linkscript file of course)
crtbegin.o and crtend.o to cplus cplus projects
i wanna compile just to test if interrupts are enabled. but when i compile it gets a warning:
/cygdrive/c/DEVKIT~1/BIN/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-agb-el
f/bin/ld: warning: cannot find entry symbol _start; defaulting to 08000000
what?s wrong? the elf files wasnt created :(
see below whats done in makefile:
Code: |
All : gba.bin gba.bin : gba.elf objcopy -O binary gba.elf gba.bin gba.elf: crt0.o gba.o crtbegin.o crtend.o gcc -nostartfiles -Tlnkscript -o crt0.o gba.o crtbegin.o crtend.o gba.o : gba.cpp gcc -c gba.cpp crt0.o : crt0.s as -mthumb-interwork -marm7tdmi -o crt0.o crt0.s |