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