From 13df836b911c6f51c58ccabf4b07fe6cf8099417 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 16 Jun 2022 23:38:07 +0100 Subject: [PATCH] update multiboot linker --- agb/gba_mb.ld | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/agb/gba_mb.ld b/agb/gba_mb.ld index 9fdd23c1..dd110073 100644 --- a/agb/gba_mb.ld +++ b/agb/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 : {