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:
Aidan MacDonald 2022-12-03 11:27:20 +00:00
parent 68af18a56f
commit e8ad52be94
4 changed files with 9 additions and 5 deletions

View file

@ -30,11 +30,15 @@ MEMORY
SECTIONS
{
.text :
.startup :
{
loadaddress = .;
_loadaddress = .;
*(.init.text);
*(.startup.text);
} > DRAM
.text :
{
*(.text*);
} > DRAM

View file

@ -34,7 +34,7 @@
.set noreorder
.set noat
.section .init.text
.section .startup.text,"ax",%progbits
_start:
b _realstart

View file

@ -31,7 +31,7 @@
.set noreorder
.set noat
.section .init.spl
.section .startup.spl
_spl_start:
/* Clear data watchpoint */

View file

@ -15,7 +15,7 @@ SECTIONS
{
.text :
{
*(.init.spl);
*(.startup.spl);
*(.text*);
*(.icode*);
} > TCSM