From 3a66aacc0c883e47897984be5e98781bfad77695 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 16 Jun 2022 22:59:17 +0100 Subject: [PATCH] modify linker scripts --- examples/the-hat-chooses-the-wizard/gba.ld | 7 ++----- examples/the-purple-night/gba.ld | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/the-hat-chooses-the-wizard/gba.ld b/examples/the-hat-chooses-the-wizard/gba.ld index ba54bc5a..398b550e 100644 --- a/examples/the-hat-chooses-the-wizard/gba.ld +++ b/examples/the-hat-chooses-the-wizard/gba.ld @@ -15,12 +15,9 @@ __text_start = ORIGIN(rom); SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > rom - .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); } > rom diff --git a/examples/the-purple-night/gba.ld b/examples/the-purple-night/gba.ld index ba54bc5a..398b550e 100644 --- a/examples/the-purple-night/gba.ld +++ b/examples/the-purple-night/gba.ld @@ -15,12 +15,9 @@ __text_start = ORIGIN(rom); SECTIONS { . = __text_start; - .crt0 : { - KEEP (crt0.o(.text)); - . = ALIGN(4); - } > rom - .text : { + KEEP(*(.crt0)); + *(.crt0 .crt0*); *(.text .text*); . = ALIGN(4); } > rom