From 15d594cccddf715daae268eeff2a65590fb2f6b2 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 8 Nov 2015 00:54:32 +0100 Subject: [PATCH] ARM: Add __aeabi_memset and __aeabi_memmove alias --- src/system/libroot/posix/string/arch/generic/memset.c | 5 +++++ src/system/libroot/posix/string/memmove.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/system/libroot/posix/string/arch/generic/memset.c b/src/system/libroot/posix/string/arch/generic/memset.c index 68166576a7..bd75a763f4 100644 --- a/src/system/libroot/posix/string/arch/generic/memset.c +++ b/src/system/libroot/posix/string/arch/generic/memset.c @@ -17,3 +17,8 @@ memset(void *s, int c, size_t count) return s; } + +#ifdef __ARM__ +void* __aeabi_memset(void *s, int c, size_t count) + __attribute__((__alias__("memset"))); +#endif diff --git a/src/system/libroot/posix/string/memmove.c b/src/system/libroot/posix/string/memmove.c index 1c005ff3a0..38974d8fdc 100644 --- a/src/system/libroot/posix/string/memmove.c +++ b/src/system/libroot/posix/string/memmove.c @@ -70,4 +70,9 @@ memmove(void* dest, void const* src, size_t count) return dest; } +#ifdef __ARM__ +void* __aeabi_memmove(void* dest, void const* src, size_t count) + __attribute__((__alias__("memmove"))); +#endif + #endif