From bd3f2f4d592e3e6948ea212714a90b103417457a Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 16 Jun 2022 23:38:47 +0100 Subject: [PATCH] update all other gba_mb.ld --- book/games/pong/gba_mb.ld | 11 +++++------ examples/the-purple-night/gba_mb.ld | 11 +++++------ template/gba_mb.ld | 11 +++++------ 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/book/games/pong/gba_mb.ld b/book/games/pong/gba_mb.ld index 9fdd23c1..dd110073 100644 --- a/book/games/pong/gba_mb.ld +++ b/book/games/pong/gba_mb.ld @@ -11,18 +11,17 @@ MEMORY { __text_start = ORIGIN(ewram); +INPUT (agb.a) + SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > ewram - .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); - } > ewram + } > rom __text_end = .; .rodata : { diff --git a/examples/the-purple-night/gba_mb.ld b/examples/the-purple-night/gba_mb.ld index 9fdd23c1..dd110073 100644 --- a/examples/the-purple-night/gba_mb.ld +++ b/examples/the-purple-night/gba_mb.ld @@ -11,18 +11,17 @@ MEMORY { __text_start = ORIGIN(ewram); +INPUT (agb.a) + SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > ewram - .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); - } > ewram + } > rom __text_end = .; .rodata : { diff --git a/template/gba_mb.ld b/template/gba_mb.ld index 9fdd23c1..dd110073 100644 --- a/template/gba_mb.ld +++ b/template/gba_mb.ld @@ -11,18 +11,17 @@ MEMORY { __text_start = ORIGIN(ewram); +INPUT (agb.a) + SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > ewram - .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); - } > ewram + } > rom __text_end = .; .rodata : {