mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-03 15:54:58 -05:00
use crt0 as startup section
This commit is contained in:
parent
676638c26a
commit
1fe74a378b
|
|
@ -14,10 +14,10 @@ MEMORY {
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >ddmem = 0xff
|
||||
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@ __irq_vector = 0x04000000 - 4;
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >iwram = 0xff
|
||||
} >iwram = 0xff
|
||||
.plt : { *(.plt) } >iwram = 0xff
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@---------------------------------------------------------------------------------
|
||||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.global _start
|
||||
@---------------------------------------------------------------------------------
|
||||
.align 4
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ __irq_vector = 0x04000000 - 4;
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >vram = 0xff
|
||||
} >vram = 0xff
|
||||
.plt : { *(.plt) } >vram = 0xff
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ __sp_usr = __sp_irq - 0x100;
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >ewram = 0xff
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
.equ _libnds_argv,0x02FFFE70
|
||||
|
||||
@---------------------------------------------------------------------------------
|
||||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.global _start
|
||||
@---------------------------------------------------------------------------------
|
||||
.align 4
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ __irq_vector = __iwram_top - 4;
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >rom = 0xff
|
||||
} >rom = 0xff
|
||||
.plt : { *(.plt) } >rom = 0xff
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@---------------------------------------------------------------------------------
|
||||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.global _start
|
||||
.arm
|
||||
@---------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
@ author : tim schuerewegen
|
||||
@ version : 1.0
|
||||
@---------------------------------------------------------------------------------
|
||||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.global _start
|
||||
.align
|
||||
.arm
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ __irq_flags = 0x03007ff8;
|
|||
SECTIONS
|
||||
{
|
||||
. = __text_start;
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4);
|
||||
} >rom =0xff
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.global _start
|
||||
.align
|
||||
.arm
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ SECTIONS
|
|||
{
|
||||
. = 0x02000000;
|
||||
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
*(.init)
|
||||
*(.crt0)
|
||||
. = ALIGN(4);
|
||||
} = 0xff
|
||||
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ MEMORY
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.init :
|
||||
.crt0 :
|
||||
{
|
||||
__text_start = . ;
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >ram = 0xff
|
||||
.plt : { *(.plt) } >ram = 0xff
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.section ".init"
|
||||
.section ".crt0","ax"
|
||||
.code 32
|
||||
.align
|
||||
.global _start
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user