From 28513335fb407ceb131926eb3ecd3d5ce79c318e Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 16 Jun 2022 23:33:09 +0100 Subject: [PATCH] Update all the gba.ld files --- book/games/pong/gba.ld | 6 +----- examples/the-hat-chooses-the-wizard/gba.ld | 6 +----- examples/the-purple-night/gba.ld | 6 +----- template/gba.ld | 8 ++++---- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/book/games/pong/gba.ld b/book/games/pong/gba.ld index ece82547..0c46202b 100644 --- a/book/games/pong/gba.ld +++ b/book/games/pong/gba.ld @@ -12,11 +12,7 @@ MEMORY { __text_start = ORIGIN(rom); -INPUT ( - crt0.o - interrupt_handler.o - mixer.o -) +INPUT (agb.a) SECTIONS { . = __text_start; diff --git a/examples/the-hat-chooses-the-wizard/gba.ld b/examples/the-hat-chooses-the-wizard/gba.ld index ece82547..0c46202b 100644 --- a/examples/the-hat-chooses-the-wizard/gba.ld +++ b/examples/the-hat-chooses-the-wizard/gba.ld @@ -12,11 +12,7 @@ MEMORY { __text_start = ORIGIN(rom); -INPUT ( - crt0.o - interrupt_handler.o - mixer.o -) +INPUT (agb.a) SECTIONS { . = __text_start; diff --git a/examples/the-purple-night/gba.ld b/examples/the-purple-night/gba.ld index ece82547..0c46202b 100644 --- a/examples/the-purple-night/gba.ld +++ b/examples/the-purple-night/gba.ld @@ -12,11 +12,7 @@ MEMORY { __text_start = ORIGIN(rom); -INPUT ( - crt0.o - interrupt_handler.o - mixer.o -) +INPUT (agb.a) SECTIONS { . = __text_start; diff --git a/template/gba.ld b/template/gba.ld index ba54bc5a..0c46202b 100644 --- a/template/gba.ld +++ b/template/gba.ld @@ -12,15 +12,15 @@ MEMORY { __text_start = ORIGIN(rom); +INPUT (agb.a) + SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > rom .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); } > rom