]> sourceware.org Git - glibc.git/commitdiff
powerpc: Fix memmove static build
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 25 Feb 2015 12:49:51 +0000 (07:49 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 25 Feb 2015 18:25:54 +0000 (13:25 -0500)
This patch fixes the missing "__memcpy_ppc" symbol for memmove-ppc64
object in static builds.  Since memcpy ifunc is not enabled in static
mode, the specialized symbols are not provided.  The patch changed the
it to just "__memcpy" instead.

ChangeLog
sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c

index 296f5e863054a4493de9a13f572b907b4bbe82d7..bf23bc139c0d6c671b6dcf142ada373020ca8234 100644 (file)
--- 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]
index a2d87900304fb709f1c76ff545d221214a836c45..b433a27c657935726dd96cda7e53af5947fd2be7 100644 (file)
@@ -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
This page took 0.119953 seconds and 5 git commands to generate.