#78491 - Mighty Max - Fri Apr 07, 2006 6:34 pm
Hello,
i got a problem with some linker settings, and i have no idea on the solution, maybe someone might be able to help:
I have some code and some data i want to be in a given mem region. I want them to be in the area 0x23B8000-23EFFFF. There is more then enough space for them there.
I did several things (to try) to get this working: I've defined a data and a code section at this address via the ds_arm9.ld. But when i assign anything, data or code into this section via "__attribute__ ((section("name")))" the thing won't start anymore. (HW keeps whitescreens, dualis crashes)
Even if i don't access any of this region, and do a simple "Hello World" nds. The .map file looks ok. The .nds is about 3.8MB, so it's building the arm9 bin as a monolithic block as expected.
I tested if i could make a workaround. The nds is small enough to match complete in this region, so i modified the ewram start & size in the ld. Again, the .map looked right, the nds was at 73kB (the same size as without any tries to get into this memory region)
But on the load it crashes again with whitescreens.
Any help would be great.
_________________
GBAMP Multiboot
Last edited by Mighty Max on Fri Apr 07, 2006 8:13 pm; edited 1 time in total
i got a problem with some linker settings, and i have no idea on the solution, maybe someone might be able to help:
I have some code and some data i want to be in a given mem region. I want them to be in the area 0x23B8000-23EFFFF. There is more then enough space for them there.
I did several things (to try) to get this working: I've defined a data and a code section at this address via the ds_arm9.ld. But when i assign anything, data or code into this section via "__attribute__ ((section("name")))" the thing won't start anymore. (HW keeps whitescreens, dualis crashes)
Even if i don't access any of this region, and do a simple "Hello World" nds. The .map file looks ok. The .nds is about 3.8MB, so it's building the arm9 bin as a monolithic block as expected.
I tested if i could make a workaround. The nds is small enough to match complete in this region, so i modified the ewram start & size in the ld. Again, the .map looked right, the nds was at 73kB (the same size as without any tries to get into this memory region)
But on the load it crashes again with whitescreens.
Any help would be great.
_________________
GBAMP Multiboot
Last edited by Mighty Max on Fri Apr 07, 2006 8:13 pm; edited 1 time in total