mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
powerpc64le/power9: guard power9 strcmp against rtld usage [BZ# 25905]
strcmp is used while resolving PLT references. Vector registers should not be used during this. The P9 strcmp makes heavy use of vector registers, so it should be avoided in rtld. This prevents quiet vector register corruption when glibc is configured with --disable-multi-arch and --with-cpu=power9. This can be seen with test-float64x-compat_totalordermag during the first call into totalordermagf64x@GLIBC_2.27. Add a guard to fallback to the power8 implementation when building power9 strcmp for libraries other than libc. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
a49e56a945
commit
4a4db1de2f
2
sysdeps/powerpc/powerpc64/le/power9/rtld-strcmp.S
Normal file
2
sysdeps/powerpc/powerpc64/le/power9/rtld-strcmp.S
Normal file
@ -0,0 +1,2 @@
|
||||
/* Fallback to P8 which does not use vector regs for rtld. */
|
||||
#include <sysdeps/powerpc/powerpc64/power8/strcmp.S>
|
Loading…
x
Reference in New Issue
Block a user