From fb8bcbfc0d7c834cc488383c0902ad46ef9abc54 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Fri, 17 Jun 2022 00:43:51 +0100 Subject: [PATCH] Update all the other linker scripts --- book/games/pong/gba.ld | 3 +++ examples/the-hat-chooses-the-wizard/gba.ld | 3 +++ examples/the-purple-night/gba.ld | 3 +++ template/gba.ld | 3 +++ 4 files changed, 12 insertions(+) diff --git a/book/games/pong/gba.ld b/book/games/pong/gba.ld index 0c46202b..cd74016a 100644 --- a/book/games/pong/gba.ld +++ b/book/games/pong/gba.ld @@ -4,6 +4,9 @@ OUTPUT_ARCH(arm) ENTRY(__start) EXTERN(__RUST_INTERRUPT_HANDLER) +EXTERN(__agbabi_memset) +EXTERN(__agbabi_memcpy) + MEMORY { ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K diff --git a/examples/the-hat-chooses-the-wizard/gba.ld b/examples/the-hat-chooses-the-wizard/gba.ld index 0c46202b..cd74016a 100644 --- a/examples/the-hat-chooses-the-wizard/gba.ld +++ b/examples/the-hat-chooses-the-wizard/gba.ld @@ -4,6 +4,9 @@ OUTPUT_ARCH(arm) ENTRY(__start) EXTERN(__RUST_INTERRUPT_HANDLER) +EXTERN(__agbabi_memset) +EXTERN(__agbabi_memcpy) + MEMORY { ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K diff --git a/examples/the-purple-night/gba.ld b/examples/the-purple-night/gba.ld index 0c46202b..cd74016a 100644 --- a/examples/the-purple-night/gba.ld +++ b/examples/the-purple-night/gba.ld @@ -4,6 +4,9 @@ OUTPUT_ARCH(arm) ENTRY(__start) EXTERN(__RUST_INTERRUPT_HANDLER) +EXTERN(__agbabi_memset) +EXTERN(__agbabi_memcpy) + MEMORY { ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K diff --git a/template/gba.ld b/template/gba.ld index 0c46202b..cd74016a 100644 --- a/template/gba.ld +++ b/template/gba.ld @@ -4,6 +4,9 @@ OUTPUT_ARCH(arm) ENTRY(__start) EXTERN(__RUST_INTERRUPT_HANDLER) +EXTERN(__agbabi_memset) +EXTERN(__agbabi_memcpy) + MEMORY { ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K