446cf2
commit 07f3ecdba69c5190180112c25757040c69041bb9
446cf2
Author: Raphael Moreira Zinsly <rzinsly@linux.ibm.com>
446cf2
Date:   Thu Sep 17 11:16:36 2020 -0300
446cf2
446cf2
    powerpc: fix ifunc implementation list for POWER9 strlen and stpcpy
446cf2
    
446cf2
    __strlen_power9 and __stpcpy_power9 were added to their ifunc lists
446cf2
    using the wrong function names.
446cf2
446cf2
diff --git a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
446cf2
index daa30d3907395680..e622ab4d47548146 100644
446cf2
--- a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
446cf2
+++ b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
446cf2
@@ -99,7 +99,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
446cf2
   /* Support sysdeps/powerpc/powerpc64/multiarch/stpcpy.c.  */
446cf2
   IFUNC_IMPL (i, name, stpcpy,
446cf2
 #ifdef __LITTLE_ENDIAN__
446cf2
-	      IFUNC_IMPL_ADD (array, i, strncmp, hwcap2 & PPC_FEATURE2_ARCH_3_00,
446cf2
+	      IFUNC_IMPL_ADD (array, i, stpcpy, hwcap2 & PPC_FEATURE2_ARCH_3_00,
446cf2
 			      __stpcpy_power9)
446cf2
 #endif
446cf2
 	      IFUNC_IMPL_ADD (array, i, stpcpy, hwcap2 & PPC_FEATURE2_ARCH_2_07,
446cf2
@@ -112,7 +112,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
446cf2
   /* Support sysdeps/powerpc/powerpc64/multiarch/strlen.c.  */
446cf2
   IFUNC_IMPL (i, name, strlen,
446cf2
 #ifdef __LITTLE_ENDIAN__
446cf2
-	      IFUNC_IMPL_ADD (array, i, strcpy, hwcap2 & PPC_FEATURE2_ARCH_3_00,
446cf2
+	      IFUNC_IMPL_ADD (array, i, strlen, hwcap2 & PPC_FEATURE2_ARCH_3_00,
446cf2
 			      __strlen_power9)
446cf2
 #endif
446cf2
 	      IFUNC_IMPL_ADD (array, i, strlen, hwcap2 & PPC_FEATURE2_ARCH_2_07,