about summary refs log tree commit diff
path: root/src/string/arm/__aeabi_memmove.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2017-02-21 00:07:34 +0000
committerRich Felker <dalias@aerifal.cx>2017-06-22 18:34:06 -0400
commite6def544358afd5648a428d2e02c147a1f901048 (patch)
tree9210513645e1a5dc230e1f128237dbe978e94ee7 /src/string/arm/__aeabi_memmove.c
parent91d34c4533e6bf6eacad7a9f001f28f9e5ebc656 (diff)
downloadmusl-e6def544358afd5648a428d2e02c147a1f901048.tar.gz
musl-e6def544358afd5648a428d2e02c147a1f901048.tar.xz
musl-e6def544358afd5648a428d2e02c147a1f901048.zip
fix arm run-time abi string functions
in arm rtabi these __aeabi_* functions have special abi (they are
only allowed to clobber r0,r1,r2,r3,ip,lr,cpsr), so they cannot
be simple wrappers around normal string functions (which may
clobber other registers), the safest solution is to write them in
asm, a minimalistic implementation works because these are not
supposed to be emitted by compilers or used in general.
Diffstat (limited to 'src/string/arm/__aeabi_memmove.c')
-rw-r--r--src/string/arm/__aeabi_memmove.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/string/arm/__aeabi_memmove.c b/src/string/arm/__aeabi_memmove.c
deleted file mode 100644
index 951e7d39..00000000
--- a/src/string/arm/__aeabi_memmove.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <string.h>
-#include "libc.h"
-
-void __aeabi_memmove(void *dest, const void *src, size_t n)
-{
-	memmove(dest, src, n);
-}
-weak_alias(__aeabi_memmove, __aeabi_memmove4);
-weak_alias(__aeabi_memmove, __aeabi_memmove8);