mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-24 19:14:24 -05:00
still need .init section
This commit is contained in:
parent
7b9a6387f4
commit
a0f7e4e2da
|
|
@ -26,6 +26,11 @@ SECTIONS
|
|||
|
||||
.plt : { *(.plt) } >ewram = 0xff
|
||||
|
||||
.init :
|
||||
{
|
||||
KEEP (*(SORT_NONE(.init)))
|
||||
} >ewram
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
{
|
||||
*(EXCLUDE_FILE (*.itcm*) .text)
|
||||
|
|
|
|||
|
|
@ -28,8 +28,14 @@ SECTIONS
|
|||
KEEP (*(.crt0))
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >rom = 0xff
|
||||
|
||||
.plt : { *(.plt) } >rom = 0xff
|
||||
|
||||
.init :
|
||||
{
|
||||
KEEP (*(SORT_NONE(.init)))
|
||||
} >ewram
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
{
|
||||
*(EXCLUDE_FILE (*.iwram*) .text)
|
||||
|
|
|
|||
|
|
@ -79,6 +79,11 @@ SECTIONS
|
|||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >rom
|
||||
|
||||
.init :
|
||||
{
|
||||
KEEP (*(SORT_NONE(.init)))
|
||||
} >rom
|
||||
|
||||
.text : /* ALIGN (4): */
|
||||
{
|
||||
*(EXCLUDE_FILE (*.iwram*) .text)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
.section ".crt0","ax"
|
||||
.global _start
|
||||
.align
|
||||
|
||||
.arm
|
||||
.cpu arm7tdmi
|
||||
|
||||
@---------------------------------------------------------------------------------
|
||||
_start:
|
||||
@---------------------------------------------------------------------------------
|
||||
|
|
@ -43,8 +46,8 @@ __slave_number:
|
|||
.word 0 @ reserved
|
||||
.word 0 @ reserved
|
||||
|
||||
.global start_vector
|
||||
.align
|
||||
.global start_vector
|
||||
.align
|
||||
@---------------------------------------------------------------------------------
|
||||
start_vector:
|
||||
@---------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -61,18 +61,24 @@ __irq_flags = 0x03007ff8;
|
|||
SECTIONS
|
||||
{
|
||||
. = __text_start;
|
||||
.init :
|
||||
. = __text_start;
|
||||
.crt0 :
|
||||
{
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.crt0))
|
||||
. = ALIGN(4);
|
||||
} >ewram =0xff
|
||||
|
||||
.plt :
|
||||
{
|
||||
{
|
||||
*(.plt)
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >ewram
|
||||
|
||||
.init :
|
||||
{
|
||||
KEEP (*(SORT_NONE(.init)))
|
||||
} >ewram
|
||||
|
||||
.text ALIGN (4):
|
||||
{
|
||||
*(EXCLUDE_FILE (*.iwram*) .text)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user