]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: fix ifunc implementation list for POWER9 strlen and stpcpy
authorRaphael Moreira Zinsly <rzinsly@linux.ibm.com>
Thu, 17 Sep 2020 14:16:36 +0000 (11:16 -0300)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Thu, 17 Sep 2020 16:00:42 +0000 (11:00 -0500)
__strlen_power9 and __stpcpy_power9 were added to their ifunc lists
using the wrong function names.

sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c

index ea10b0041722b36b2fb6259831e89843fd471201..dd54e7d6bb915b3a61b51ea74cf9f06d0ce9b041 100644 (file)
@@ -99,7 +99,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
   /* Support sysdeps/powerpc/powerpc64/multiarch/stpcpy.c.  */
   IFUNC_IMPL (i, name, stpcpy,
 #ifdef __LITTLE_ENDIAN__
-             IFUNC_IMPL_ADD (array, i, strncmp, hwcap2 & PPC_FEATURE2_ARCH_3_00,
+             IFUNC_IMPL_ADD (array, i, stpcpy, hwcap2 & PPC_FEATURE2_ARCH_3_00,
                              __stpcpy_power9)
 #endif
              IFUNC_IMPL_ADD (array, i, stpcpy, hwcap2 & PPC_FEATURE2_ARCH_2_07,
@@ -112,7 +112,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
   /* Support sysdeps/powerpc/powerpc64/multiarch/strlen.c.  */
   IFUNC_IMPL (i, name, strlen,
 #ifdef __LITTLE_ENDIAN__
-             IFUNC_IMPL_ADD (array, i, strcpy, hwcap2 & PPC_FEATURE2_ARCH_3_00,
+             IFUNC_IMPL_ADD (array, i, strlen, hwcap2 & PPC_FEATURE2_ARCH_3_00,
                              __strlen_power9)
 #endif
              IFUNC_IMPL_ADD (array, i, strlen, hwcap2 & PPC_FEATURE2_ARCH_2_07,