about summary refs log tree commit diff
path: root/sysdeps/s390/s390-32/multiarch/memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/s390/s390-32/multiarch/memcpy.c')
-rw-r--r--sysdeps/s390/s390-32/multiarch/memcpy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/s390/s390-32/multiarch/memcpy.c b/sysdeps/s390/s390-32/multiarch/memcpy.c
index 2a98aa0b82..33e4bcdca2 100644
--- a/sysdeps/s390/s390-32/multiarch/memcpy.c
+++ b/sysdeps/s390/s390-32/multiarch/memcpy.c
@@ -18,7 +18,10 @@
 
 /* In the static lib memcpy is needed before the reloc is resolved.  */
 #if defined SHARED && IS_IN (libc)
+# define memcpy __redirect_memcpy
+# include <string.h>
+# undef memcpy
 # include <ifunc-resolve.h>
 
-s390_libc_ifunc (memcpy)
+s390_libc_ifunc (__redirect_memcpy, __memcpy, memcpy)
 #endif