From 64fbf13cc3ec3c7582c36b256c244c45cc8d9436 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Fri, 17 Jun 2022 00:48:32 +0100 Subject: [PATCH] Update gba_mb with the new requried references --- agb/gba_mb.ld | 3 +++ book/games/pong/gba_mb.ld | 3 +++ examples/the-purple-night/gba_mb.ld | 3 +++ template/gba_mb.ld | 3 +++ 4 files changed, 12 insertions(+) diff --git a/agb/gba_mb.ld b/agb/gba_mb.ld index dd110073..238b5c4c 100644 --- a/agb/gba_mb.ld +++ b/agb/gba_mb.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/book/games/pong/gba_mb.ld b/book/games/pong/gba_mb.ld index dd110073..238b5c4c 100644 --- a/book/games/pong/gba_mb.ld +++ b/book/games/pong/gba_mb.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_mb.ld b/examples/the-purple-night/gba_mb.ld index dd110073..238b5c4c 100644 --- a/examples/the-purple-night/gba_mb.ld +++ b/examples/the-purple-night/gba_mb.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_mb.ld b/template/gba_mb.ld index dd110073..238b5c4c 100644 --- a/template/gba_mb.ld +++ b/template/gba_mb.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