#133032 - doudou - Mon Jul 02, 2007 8:57 pm
I'm trying to get my GBA project compiling for NDS. This is the latest error I got:
linking GameProject.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld.exe: error: no memory region specified for loadable section `.iwram'
collect2: ld returned 1 exit status
Any suggestion?
#133790 - doudou - Sun Jul 08, 2007 7:06 pm
Thanks, I didn't really need to put code in the iwram for DS, removing the
__attribute__((section (".iwram"),long_call))
did solve the problem. I think Since I'm trying to compile a complete GBA game project for DS, I think I will encounter some artefacts of that kind before succeeding...
I'm already stuck on another:
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld.exe: region ewram is full (c:/GameProject/MakeNDS/Game.elf section .rodata)
And there are few others about others sections. Maybe I need a to know a bit more about sections and linking in general, does someone have a link or topic that could help?
#134596 - doudou - Sat Jul 14, 2007 2:50 pm
Thanks again! For now I only removed a lot of my resources to be able to compile and it did. Next step will be to use the libfat IO you mentionned.
My rom is not running in DeSmuME. I can see my backgrounds (mode 0) but not my sprites. It's already more than what I thought you work at this point. It's not working on my DS though.