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
}
__text_start = ORIGIN(rom);
SECTIONS {
. = __text_start;
. = ORIGIN(rom);
.text : {
KEEP(*(.crt0));
*(.crt0 .crt0*);
KEEP(*(.entrypoint));
*(.text .text*);
. = ALIGN(4);
} > rom
__text_end = .;
.rodata : {
*(.rodata .rodata.*);

View file

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