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