mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -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
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text :
|
.startup :
|
||||||
{
|
{
|
||||||
loadaddress = .;
|
loadaddress = .;
|
||||||
_loadaddress = .;
|
_loadaddress = .;
|
||||||
*(.init.text);
|
*(.startup.text);
|
||||||
|
} > DRAM
|
||||||
|
|
||||||
|
.text :
|
||||||
|
{
|
||||||
*(.text*);
|
*(.text*);
|
||||||
} > DRAM
|
} > DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
.set noreorder
|
.set noreorder
|
||||||
.set noat
|
.set noat
|
||||||
|
|
||||||
.section .init.text
|
.section .startup.text,"ax",%progbits
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
b _realstart
|
b _realstart
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
.set noreorder
|
.set noreorder
|
||||||
.set noat
|
.set noat
|
||||||
|
|
||||||
.section .init.spl
|
.section .startup.spl
|
||||||
|
|
||||||
_spl_start:
|
_spl_start:
|
||||||
/* Clear data watchpoint */
|
/* Clear data watchpoint */
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
*(.init.spl);
|
*(.startup.spl);
|
||||||
*(.text*);
|
*(.text*);
|
||||||
*(.icode*);
|
*(.icode*);
|
||||||
} > TCSM
|
} > TCSM
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue