turns out we need to use .global to force an override of the compiler_builtins version.

This commit is contained in:
Lokathor 2022-10-16 13:38:40 -06:00
parent 789d75f419
commit 6d119969eb

View file

@ -727,6 +727,13 @@ extern "C" {
core::arch::global_asm! { core::arch::global_asm! {
emit_a32_code!{ emit_a32_code!{
put_code_in_section!(".iwram.aeabi.memory.copy.and.move", { 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_memmove8:",
"__aeabi_memmove4:", "__aeabi_memmove4:",
"__aeabi_memmove:", "__aeabi_memmove:",
@ -935,6 +942,13 @@ core::arch::global_asm! {
core::arch::global_asm! { core::arch::global_asm! {
emit_a32_code!{ emit_a32_code!{
put_code_in_section!(".iwram.aeabi.memory.clear.and.set", { 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_memclr8:",
"__aeabi_memclr4:", "__aeabi_memclr4:",
"mov r2, #0", "mov r2, #0",