Rename crt0 section to entrypoint

This commit is contained in:
Gwilym Inzani 2023-10-17 22:22:48 +01:00
parent 7afa19965c
commit 243e810150
2 changed files with 4 additions and 7 deletions

View file

@ -17,18 +17,15 @@ MEMORY {
rom (rx) : ORIGIN = 0x08000000, LENGTH = 32M rom (rx) : ORIGIN = 0x08000000, LENGTH = 32M
} }
__text_start = ORIGIN(rom);
SECTIONS { SECTIONS {
. = __text_start; . = ORIGIN(rom);
.text : { .text : {
KEEP(*(.crt0)); KEEP(*(.entrypoint));
*(.crt0 .crt0*);
*(.text .text*); *(.text .text*);
. = ALIGN(4); . = ALIGN(4);
} > rom } > rom
__text_end = .;
.rodata : { .rodata : {
*(.rodata .rodata.*); *(.rodata .rodata.*);

View file

@ -1,7 +1,7 @@
.arm .arm
.global __start .global __start
.section .crt0 .section .entrypoint
.align .align
__start: __start:
b .Initialise b .Initialise