Prevent use of devkitARM's crt0.o
Posted: Wed Oct 01, 2008 9:55 am
Hi there. I'm trying to use devkitARM for my MX1 ARM920t target. I have my own crt0. Can I somehow prevent the use of the devkitARM crt0?
I have tried this in my ldscript:
However, this results in the following entries in the .map file:
So, if I'm reading this correctly, my crt0 is placed correctly, but it still uses the crt0 from devkitarm, and it seems like my crt0 is appended a second time?
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!
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!