gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > section error

#47114 - tonysavon - Tue Jul 05, 2005 10:32 am

Hello,
I'm totally new to the DS scene so please apologize me for any stupid question:
I'm trying to port my GBA Jpeg Viewer (http://www.caimans.net/gba) to the DS and of course I'm facing a lot of problems since I'm a newcomer.
While I succesfully built many demos and little programs I made myself, I'm running into this strange error while compiling my actual code:

c:\devkitPRO\devkitARM\bin\..\lib\gcc\arm-elf\3.4.4\..\..\..\..\arm-elf\bin\ld.exe: address 0x8088fc of arm9.elf section .data is not within region dtcm
c:\devkitPRO\devkitARM\bin\..\lib\gcc\arm-elf\3.4.4\..\..\..\..\arm-elf\bin\ld.exe: address 0x808b70 of arm9.elf section .bss is not within region dtcm
collect2: ld returned 1 exit status
make: *** [arm9.elf] Error 1

what does this error means? Why I was not getting this error using the very same Makefile and "skeleton" cpp codes for simpler applications?
Thanks

#47116 - tonysavon - Tue Jul 05, 2005 10:57 am

It's ok guys, I found the solution in a previous post: I was using a huge amount of initialized data in the wrong section. I Added
VAR_IN_EXRAM
and now the program compiles fine
Thanks