Skip to content
Commit 4a4db1de authored by Paul E. Murphy's avatar Paul E. Murphy
Browse files

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: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent a49e56a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment