powerpc: Fix strnlen/power7 build
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Jul 2015 18:39:13 +0000 (15:39 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Tue, 11 Aug 2015 13:03:09 +0000 (10:03 -0300)
This patch fixes the strnlen.S build with --disable-multi-arch option.

ChangeLog
sysdeps/powerpc/powerpc64/power7/strnlen.S

index efd999b..3c1f2ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+       * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
+       libc_hidden_def.
+       (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
+
        * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
        (sysdep_routines): Add strstr-ppc64.
        * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
index 2de267f..b966f7b 100644 (file)
@@ -173,5 +173,6 @@ L(loop_small):
        blr
 
 END (__strnlen)
+libc_hidden_def (__strnlen)
 weak_alias (__strnlen, strnlen)
-libc_hidden_builtin_def (strnlen)
+libc_hidden_def (strnlen)