use crt0 as startup section

This commit is contained in:
Dave Murphy 2016-11-21 12:24:08 +00:00
parent 676638c26a
commit 1fe74a378b
14 changed files with 25 additions and 25 deletions

View File

@ -14,10 +14,10 @@ MEMORY {
SECTIONS
{
.init :
.crt0 :
{
__text_start = . ;
KEEP (*(.init))
KEEP (*(.crt0))
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
} >ddmem = 0xff

View File

@ -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): */

View File

@ -1,5 +1,5 @@
@---------------------------------------------------------------------------------
.section ".init"
.section ".crt0","ax"
.global _start
@---------------------------------------------------------------------------------
.align 4

View File

@ -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): */

View File

@ -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

View File

@ -8,7 +8,7 @@
.equ _libnds_argv,0x02FFFE70
@---------------------------------------------------------------------------------
.section ".init"
.section ".crt0","ax"
.global _start
@---------------------------------------------------------------------------------
.align 4

View File

@ -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): */

View File

@ -1,5 +1,5 @@
@---------------------------------------------------------------------------------
.section ".init"
.section ".crt0","ax"
.global _start
.arm
@---------------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@
@ author : tim schuerewegen
@ version : 1.0
@---------------------------------------------------------------------------------
.section ".init"
.section ".crt0","ax"
.global _start
.align
.arm

View File

@ -67,9 +67,9 @@ __irq_flags = 0x03007ff8;
SECTIONS
{
. = __text_start;
.init :
.crt0 :
{
KEEP (*(.init))
KEEP (*(.crt0))
. = ALIGN(4);
} >rom =0xff

View File

@ -1,4 +1,4 @@
.section ".init"
.section ".crt0","ax"
.global _start
.align
.arm

View File

@ -13,9 +13,9 @@ SECTIONS
{
. = 0x02000000;
.init :
.crt0 :
{
*(.init)
*(.crt0)
. = ALIGN(4);
} = 0xff

View File

@ -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

View File

@ -1,4 +1,4 @@
.section ".init"
.section ".crt0","ax"
.code 32
.align
.global _start