Don't put the entrypoint in the .text section

This commit is contained in:
Gwilym Inzani 2023-10-17 23:22:04 +01:00
parent 1c0e9f9a2a
commit c9c8d9e879
2 changed files with 8 additions and 2 deletions

View file

@ -20,9 +20,12 @@ MEMORY {
SECTIONS {
. = ORIGIN(rom);
.text : {
.entrypoint : {
*(.entrypoint.regular .entrypoint.common);
. = ALIGN(4);
} > rom
.text : {
*(.text .text*);
. = ALIGN(4);
} > rom

View file

@ -19,9 +19,12 @@ MEMORY {
SECTIONS {
. = ORIGIN(ewram);
.text : {
.entrypoint : {
*(.entrypoint.multiboot .entrypoint.common);
. = ALIGN(4);
} > ewram
.text : {
*(.text .text*);
. = ALIGN(4);
} > ewram