From 6d119969eb3223fb5593ed872d046be63c3d4cd7 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Sun, 16 Oct 2022 13:38:40 -0600 Subject: [PATCH] turns out we need to use .global to force an override of the compiler_builtins version. --- src/asm_runtime.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/asm_runtime.rs b/src/asm_runtime.rs index 74945fa..dd9cffe 100644 --- a/src/asm_runtime.rs +++ b/src/asm_runtime.rs @@ -727,6 +727,13 @@ extern "C" { core::arch::global_asm! { emit_a32_code!{ put_code_in_section!(".iwram.aeabi.memory.copy.and.move", { + ".global __aeabi_memmove8", + ".global __aeabi_memmove4", + ".global __aeabi_memmove", + ".global __aeabi_memcpy8", + ".global __aeabi_memcpy4", + ".global __aeabi_memcpy", + // "__aeabi_memmove8:", "__aeabi_memmove4:", "__aeabi_memmove:", @@ -935,6 +942,13 @@ core::arch::global_asm! { core::arch::global_asm! { emit_a32_code!{ put_code_in_section!(".iwram.aeabi.memory.clear.and.set", { + ".global __aeabi_memclr8", + ".global __aeabi_memclr4", + ".global __aeabi_memclr", + ".global __aeabi_memset8", + ".global __aeabi_memset4", + ".global __aeabi_memset", + // "__aeabi_memclr8:", "__aeabi_memclr4:", "mov r2, #0",