#110052 - misterDtD - Sat Nov 25, 2006 12:01 am
Nevermind
tepples post here helped me.
When I add a music file to my game (which is 1.02 Mbytes BTW) I get the errors below:
I saw in this topic, that removing "-specs=gba_mb.specs" would stop the error, well it did. But then I got new errors! (Which stay even when I remove the music file from being included)
Here is my "make file" (It's actually just a BAT)
test1.* is my project and Game00.gba is the output file.
BTW, is it a bad idea to delete the old elf and o files, they didn't seem to do anything after the compile.
~DtD
PS> I'm running on WinXP with DevKitPro if that helps.
Last edited by misterDtD on Sat Nov 25, 2006 12:23 am; edited 3 times in total
tepples post here helped me.
When I add a music file to my game (which is 1.02 Mbytes BTW) I get the errors below:
Quote: |
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld
.exe: region ewram is full (temp.elf section .rodata) c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: section .init [02000000 -> 02000217] overlaps section .init_array [0200000 0 -> 02000003] c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: section .fini_array [02000004 -> 02000007] overlaps section .init [0200000 0 -> 02000217] c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: temp.elf: section .init lma 0x2000000 overlaps previous sections c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: temp.elf: section .fini_array lma 0x2000004 overlaps previous sections c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: temp.elf: section .jcr lma 0x2000008 overlaps previous sections c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld .exe: temp.elf: section .eh_frame lma 0x200000c overlaps previous sections collect2: ld returned 1 exit status |
I saw in this topic, that removing "-specs=gba_mb.specs" would stop the error, well it did. But then I got new errors! (Which stay even when I remove the music file from being included)
Quote: |
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/th
umb\libc.a(exit.o): In function `exit': (.text+0x1a): undefined reference to `_exit' c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/th umb\libc.a(sbrkr.o): In function `_sbrk_r': (.text+0xe): undefined reference to `_sbrk' collect2: ld returned 1 exit status |
Here is my "make file" (It's actually just a BAT)
Quote: |
@echo off
PATH=c:\devkitPro\msys\bin;c:\devkitPro\devkitARM\bin; arm-eabi-gcc -mthumb -mthumb-interwork -c test1.c echo - arm-eabi-gcc -specs=gba_mb.specs -mthumb -mthumb-interwork test1.o -o temp.elf arm-eabi-objcopy -O binary temp.elf Game00.gba gbafix Game00.gba del temp.elf del test1.o echo - pause |
test1.* is my project and Game00.gba is the output file.
BTW, is it a bad idea to delete the old elf and o files, they didn't seem to do anything after the compile.
~DtD
PS> I'm running on WinXP with DevKitPro if that helps.
Last edited by misterDtD on Sat Nov 25, 2006 12:23 am; edited 3 times in total