I have tried this in my ldscript:
Code: Select all
STARTUP(crt0.o)
SECTIONS
{
/* ... */
. = 0x08000000;
/* First code to execute */
_start_crt0 : {
*crt0.o (.text)
}
/* ... */
Code: Select all
0x08000000 . = 0x8000000
_start_crt0 0x08000000 0x50c
*crt0.o(.text)
.text 0x08000000 0x204 crt0.o
.text 0x08000204 0x104 c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.3.0/../../../../arm-eabi/lib/crt0.o
0x08000204 _start
0x08000204 start
0x08000204 _mainCRTStartup
.text 0x08000308 0x204 ..\Deliv\GnuArmRelease\src\crt0.o
Second problem: the _start, start and _mainCRTStartup symbols are defined in devkitARM's crt0, where I'm trying to define my start in my crt0.
Thanks!