aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-08-31 05:28:26 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-08-31 05:28:26 +0000
commitf10434640de3727d363237e28408c4c9dc1f1114 (patch)
treeda6b29cbddd781a2efca0fce68a6f07e737cf40e /main/musl
parent25cf2230b783fe49a3141ccaa075cd1014aba352 (diff)
downloadaports-f10434640de3727d363237e28408c4c9dc1f1114.tar.bz2
aports-f10434640de3727d363237e28408c4c9dc1f1114.tar.xz
main/musl: add missing patch
Diffstat (limited to 'main/musl')
-rw-r--r--main/musl/arm-aeabi-mem.patch80
1 files changed, 80 insertions, 0 deletions
diff --git a/main/musl/arm-aeabi-mem.patch b/main/musl/arm-aeabi-mem.patch
new file mode 100644
index 0000000000..4eb3a2e63f
--- /dev/null
+++ b/main/musl/arm-aeabi-mem.patch
@@ -0,0 +1,80 @@
+From 4528633b0c22dd37ae2ec2199a4b97919dbeedd1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Sun, 30 Aug 2015 18:58:26 +0300
+Subject: [PATCH] implement wrappers for __aeabi_mem* functions
+
+---
+ arch/arm/src/__aeabi_memclr.c | 9 +++++++++
+ arch/arm/src/__aeabi_memcpy.c | 9 +++++++++
+ arch/arm/src/__aeabi_memmove.c | 9 +++++++++
+ arch/arm/src/__aeabi_memset.c | 9 +++++++++
+ 4 files changed, 36 insertions(+)
+ create mode 100644 arch/arm/src/__aeabi_memclr.c
+ create mode 100644 arch/arm/src/__aeabi_memcpy.c
+ create mode 100644 arch/arm/src/__aeabi_memmove.c
+ create mode 100644 arch/arm/src/__aeabi_memset.c
+
+diff --git a/arch/arm/src/__aeabi_memclr.c b/arch/arm/src/__aeabi_memclr.c
+new file mode 100644
+index 0000000..a25306d
+--- /dev/null
++++ b/arch/arm/src/__aeabi_memclr.c
+@@ -0,0 +1,9 @@
++#include <string.h>
++#include "libc.h"
++
++void __aeabi_memclr(void *dest, size_t n)
++{
++ memset(dest, 0, n);
++}
++weak_alias(__aeabi_memclr, __aeabi_memclr4);
++weak_alias(__aeabi_memclr, __aeabi_memclr8);
+diff --git a/arch/arm/src/__aeabi_memcpy.c b/arch/arm/src/__aeabi_memcpy.c
+new file mode 100644
+index 0000000..4ae5c77
+--- /dev/null
++++ b/arch/arm/src/__aeabi_memcpy.c
+@@ -0,0 +1,9 @@
++#include <string.h>
++#include "libc.h"
++
++void __aeabi_memcpy(void *restrict dest, const void *restrict src, size_t n)
++{
++ memcpy(dest, src, n);
++}
++weak_alias(__aeabi_memcpy, __aeabi_memcpy4);
++weak_alias(__aeabi_memcpy, __aeabi_memcpy8);
+diff --git a/arch/arm/src/__aeabi_memmove.c b/arch/arm/src/__aeabi_memmove.c
+new file mode 100644
+index 0000000..951e7d3
+--- /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);
+diff --git a/arch/arm/src/__aeabi_memset.c b/arch/arm/src/__aeabi_memset.c
+new file mode 100644
+index 0000000..8929975
+--- /dev/null
++++ b/arch/arm/src/__aeabi_memset.c
+@@ -0,0 +1,9 @@
++#include <string.h>
++#include "libc.h"
++
++void __aeabi_memset(void *dest, size_t n, int c)
++{
++ memset(dest, c, n);
++}
++weak_alias(__aeabi_memset, __aeabi_memset4);
++weak_alias(__aeabi_memset, __aeabi_memset8);
+--
+2.5.0
+
+