mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
x1000: Rename crt0 .init sections to .startup
Avoid startup code clashing with the .init section, which is by convention used for INIT_ATTR code that can be discarded after app initialization. Change-Id: Id59b7618ef41e65c33fc0f133644e07555a913eb
This commit is contained in:
parent
68af18a56f
commit
e8ad52be94
4 changed files with 9 additions and 5 deletions
|
|
@ -30,11 +30,15 @@ MEMORY
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
.startup :
|
||||
{
|
||||
loadaddress = .;
|
||||
_loadaddress = .;
|
||||
*(.init.text);
|
||||
*(.startup.text);
|
||||
} > DRAM
|
||||
|
||||
.text :
|
||||
{
|
||||
*(.text*);
|
||||
} > DRAM
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
.set noreorder
|
||||
.set noat
|
||||
|
||||
.section .init.text
|
||||
.section .startup.text,"ax",%progbits
|
||||
|
||||
_start:
|
||||
b _realstart
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
.set noreorder
|
||||
.set noat
|
||||
|
||||
.section .init.spl
|
||||
.section .startup.spl
|
||||
|
||||
_spl_start:
|
||||
/* Clear data watchpoint */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ SECTIONS
|
|||
{
|
||||
.text :
|
||||
{
|
||||
*(.init.spl);
|
||||
*(.startup.spl);
|
||||
*(.text*);
|
||||
*(.icode*);
|
||||
} > TCSM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue