diff --git a/agb/gba.ld b/agb/gba.ld index 1486f537..8f5dbc23 100644 --- a/agb/gba.ld +++ b/agb/gba.ld @@ -20,9 +20,12 @@ MEMORY { SECTIONS { . = ORIGIN(rom); - .text : { + .entrypoint : { *(.entrypoint.regular .entrypoint.common); + . = ALIGN(4); + } > rom + .text : { *(.text .text*); . = ALIGN(4); } > rom diff --git a/agb/gba_mb.ld b/agb/gba_mb.ld index 29d159f8..63dfdae5 100644 --- a/agb/gba_mb.ld +++ b/agb/gba_mb.ld @@ -19,9 +19,12 @@ MEMORY { SECTIONS { . = ORIGIN(ewram); - .text : { + .entrypoint : { *(.entrypoint.multiboot .entrypoint.common); + . = ALIGN(4); + } > ewram + .text : { *(.text .text*); . = ALIGN(4); } > ewram