CRT0 and ldscript for GBA bug
Posted: Sun Jun 26, 2011 1:33 am
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.
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.