about summary refs log tree commit diff
path: root/arch/arm/src/__aeabi_memmove.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-08-30 18:58:26 +0300
committerRich Felker <dalias@aerifal.cx>2015-08-31 06:35:01 +0000
commitd8be1bc0193f45d3900f8466f26d1411b7f919c3 (patch)
tree41385dc00baf7bf6b1516e35d089f0ac43648dcc /arch/arm/src/__aeabi_memmove.c
parentd18cf76d73df8f9cc751d4b4ba5a635c70c0c645 (diff)
downloadmusl-d8be1bc0193f45d3900f8466f26d1411b7f919c3.tar.gz
musl-d8be1bc0193f45d3900f8466f26d1411b7f919c3.tar.xz
musl-d8be1bc0193f45d3900f8466f26d1411b7f919c3.zip
implement arm eabi mem* functions
these functions are part of the ARM EABI, meaning compilers may
generate references to them. known versions of gcc do not use them,
but llvm does. they are not provided by libgcc, and the de facto
standard seems to be that libc provides them.
Diffstat (limited to 'arch/arm/src/__aeabi_memmove.c')
-rw-r--r--arch/arm/src/__aeabi_memmove.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/src/__aeabi_memmove.c b/arch/arm/src/__aeabi_memmove.c
new file mode 100644
index 00000000..951e7d39
--- /dev/null
+++ b/arch/arm/src/__aeabi_memmove.c
@@ -0,0 +1,9 @@
+#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);