diff -ru a/butano/hw/3rd_party/agbabi/src/atan2.s b/butano/hw/3rd_party/agbabi/src/atan2.s --- a/butano/hw/3rd_party/agbabi/src/atan2.s +++ b/butano/hw/3rd_party/agbabi/src/atan2.s @@ -17,6 +17,7 @@ .section .iwram.__agbabi_atan2, "ax", %progbits .global __agbabi_atan2 + .type __agbabi_atan2, %function __agbabi_atan2: subs r3, r1, #0 mov r1, r0 diff -ru a/butano/hw/3rd_party/agbabi/src/lmul.s b/butano/hw/3rd_party/agbabi/src/lmul.s --- a/butano/hw/3rd_party/agbabi/src/lmul.s +++ b/butano/hw/3rd_party/agbabi/src/lmul.s @@ -15,6 +15,7 @@ .section .iwram.__aeabi_lmul, "ax", %progbits .global __aeabi_lmul + .type __aeabi_lmul, %function __aeabi_lmul: mul r3, r0, r3 mla r1, r2, r1, r3 @@ -24,6 +25,7 @@ .section .iwram.__aeabi_llsl, "ax", %progbits .global __aeabi_llsl + .type __aeabi_llsl, %function __aeabi_llsl: subs r3, r2, #32 rsb r12, r2, #32 @@ -35,6 +37,7 @@ .section .iwram.__aeabi_llsr, "ax", %progbits .global __aeabi_llsr + .type __aeabi_llsr, %function __aeabi_llsr: subs r3, r2, #32 rsb r12, r2, #32 @@ -46,6 +49,7 @@ .section .iwram.__aeabi_lasr, "ax", %progbits .global __aeabi_lasr + .type __aeabi_lasr, %function __aeabi_lasr: subs r3, r2, #32 rsb r12, r2, #32 diff -ru a/butano/hw/3rd_party/agbabi/src/memcpy.s b/butano/hw/3rd_party/agbabi/src/memcpy.s --- a/butano/hw/3rd_party/agbabi/src/memcpy.s +++ b/butano/hw/3rd_party/agbabi/src/memcpy.s @@ -21,6 +21,7 @@ .section .iwram.__aeabi_memcpy, "ax", %progbits .global __aeabi_memcpy + .type __aeabi_memcpy, %function __aeabi_memcpy: // >6-bytes is roughly the threshold when byte-by-byte copy is slower cmp r2, #6 @@ -45,8 +46,11 @@ // r0, r1 are now word aligned .global __aeabi_memcpy8 + + .type __aeabi_memcpy8, %function __aeabi_memcpy8: .global __aeabi_memcpy4 + .type __aeabi_memcpy4, %function __aeabi_memcpy4: cmp r2, #32 blt .Lcopy_words @@ -94,6 +98,8 @@ // r0, r1 are now half aligned .global __agbabi_memcpy2 + + .type __agbabi_memcpy2, %function __agbabi_memcpy2: subs r2, r2, #2 ldrgeh r3, [r1], #2 @@ -108,6 +114,8 @@ bx lr .global __agbabi_memcpy1 + + .type __agbabi_memcpy1, %function __agbabi_memcpy1: subs r2, r2, #1 ldrgeb r3, [r1], #1 @@ -117,6 +125,7 @@ .section .iwram.memcpy, "ax", %progbits .global memcpy + .type memcpy, %function memcpy: push {r0, lr} bl __aeabi_memcpy diff -ru a/butano/hw/3rd_party/agbabi/src/memmove.s b/butano/hw/3rd_party/agbabi/src/memmove.s --- a/butano/hw/3rd_party/agbabi/src/memmove.s +++ b/butano/hw/3rd_party/agbabi/src/memmove.s @@ -17,6 +17,7 @@ .section .iwram.__aeabi_memmove, "ax", %progbits .global __aeabi_memmove + .type __aeabi_memmove, %function __aeabi_memmove: cmp r0, r1 .extern __agbabi_rmemcpy @@ -25,8 +26,11 @@ b __aeabi_memcpy .global __aeabi_memmove8 + + .type __aeabi_memmove8, %function __aeabi_memmove8: .global __aeabi_memmove4 + .type __aeabi_memmove4, %function __aeabi_memmove4: cmp r0, r1 .extern __agbabi_rmemcpy @@ -35,6 +39,8 @@ b __aeabi_memcpy4 .global __agbabi_memmove1 + + .type __agbabi_memmove1, %function __agbabi_memmove1: cmp r0, r1 .extern __agbabi_rmemcpy1 @@ -44,6 +50,7 @@ .section .iwram.memmove, "ax", %progbits .global memmove + .type memmove, %function memmove: push {r0, lr} bl __aeabi_memmove diff -ru a/butano/hw/3rd_party/agbabi/src/memset.s b/butano/hw/3rd_party/agbabi/src/memset.s --- a/butano/hw/3rd_party/agbabi/src/memset.s +++ b/butano/hw/3rd_party/agbabi/src/memset.s @@ -22,19 +22,24 @@ .section .iwram.__aeabi_memclr, "ax", %progbits .global __aeabi_memclr + .type __aeabi_memclr, %function __aeabi_memclr: mov r2, #0 b .Lwordset .global __aeabi_memclr8 + + .type __aeabi_memclr8, %function __aeabi_memclr8: .global __aeabi_memclr4 + .type __aeabi_memclr4, %function __aeabi_memclr4: mov r2, #0 b __agbabi_wordset4 .section .iwram.__aeabi_memset, "ax", %progbits .global __aeabi_memset + .type __aeabi_memset, %function __aeabi_memset: mov r2, r2, lsl #24 orr r2, r2, r2, lsr #8 @@ -54,10 +59,14 @@ subcs r1, r1, #2 .global __agbabi_wordset4 + + .type __agbabi_wordset4, %function __agbabi_wordset4: mov r3, r2 .global __agbabi_lwordset4 + + .type __agbabi_lwordset4, %function __agbabi_lwordset4: // >=64-bytes is roughly the threshold when 8-byte copy is slower cmp r1, #64 @@ -99,6 +108,7 @@ .section .iwram.memset, "ax", %progbits .global memset + .type memset, %function memset: mov r3, r1 mov r1, r2 diff -ru a/butano/hw/3rd_party/agbabi/src/rmemcpy.s b/butano/hw/3rd_party/agbabi/src/rmemcpy.s --- a/butano/hw/3rd_party/agbabi/src/rmemcpy.s +++ b/butano/hw/3rd_party/agbabi/src/rmemcpy.s @@ -17,6 +17,7 @@ .section .iwram.__agbabi_rmemcpy, "ax", %progbits .global __agbabi_rmemcpy + .type __agbabi_rmemcpy, %function __agbabi_rmemcpy: // >6-bytes is roughly the threshold when byte-by-byte copy is slower cmp r2, #6 @@ -98,6 +99,8 @@ bx lr .global __agbabi_rmemcpy1 + + .type __agbabi_rmemcpy1, %function __agbabi_rmemcpy1: subs r2, r2, #1 ldrgeb r3, [r1, r2]