When I complied example project for GBA, some link error occuerred.
To fix this error, we must edit gba_crt0.s and gba_cart.ld, then remake crt0 for GBA.
(1) edit gba_crt0.s and gba_cart.ld as follows:
replace '__data_start__' to '__data_start' and '__data_end__' to '__data_end' .
(2) rebuild crt0 as follows:
execute "make CRT=gba" at devkitARM/arm-eabi/lib folder.
thanx.
CRT0 and ldscript for GBA bug
-
- Site Admin
- Posts: 2004
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: CRT0 and ldscript for GBA bug
This is completely the wrong fix, the link error happens with multiboot images - __data_start & __data_end need to be replaced with __data_start__ and __data_end__ in the gba_mb.ld linkscript.
Re: CRT0 and ldscript for GBA bug
Hi,WinterMute.
I also did the same correction as you first.
However, I corrected to match it to the symbol of NDS and GP32 again.
I think that you may correct it by which method.
Thank you.
I also did the same correction as you first.
However, I corrected to match it to the symbol of NDS and GP32 again.
I think that you may correct it by which method.
Thank you.
-
- Site Admin
- Posts: 2004
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: CRT0 and ldscript for GBA bug
Always apply the simplest fix ...
Who is online
Users browsing this forum: No registered users and 4 guests