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