about summary refs log tree commit diff homepage
path: root/runtime/Intrinsic/mempcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Intrinsic/mempcpy.c')
-rw-r--r--runtime/Intrinsic/mempcpy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/Intrinsic/mempcpy.c b/runtime/Intrinsic/mempcpy.c
index 31e142d9..e47a94b1 100644
--- a/runtime/Intrinsic/mempcpy.c
+++ b/runtime/Intrinsic/mempcpy.c
@@ -8,8 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <stdlib.h>
-
-void *mempcpy(void *destaddr, void const *srcaddr, size_t len) {
+__attribute__((weak)) void *mempcpy(void *destaddr, void const *srcaddr, size_t len) {
   char *dest = destaddr;
   char const *src = srcaddr;