about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 296f5e8630..bf23bc139c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+	* sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
+	to __memcpy_ppc only for static builds.
+
 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #18020]
diff --git a/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c b/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c
index a2d8790030..b433a27c65 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c
@@ -32,7 +32,9 @@ extern __typeof (memmove) __memmove_ppc attribute_hidden;
 #define MEMMOVE __memmove_ppc
 
 extern __typeof (memcpy) __memcpy_ppc attribute_hidden;
-#define memcpy __memcpy_ppc
+#ifdef SHARED
+# define memcpy __memcpy_ppc
+#endif
 
 #if IS_IN (libc) && defined(SHARED)
 # undef libc_hidden_builtin_def