about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRaphael Moreira Zinsly <rzinsly@linux.ibm.com>2020-09-14 11:59:24 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2020-09-22 17:45:12 -0300
commit3322ecbfe29a16e74c4f584d661b0b8018bb4031 (patch)
tree3ea1322f06846bfc29d7ffa3f20d39e99a77f2e6 /sysdeps
parent681900d29683722b1cb0a8e565a0585846ec5a61 (diff)
downloadglibc-3322ecbfe29a16e74c4f584d661b0b8018bb4031.tar.gz
glibc-3322ecbfe29a16e74c4f584d661b0b8018bb4031.tar.xz
glibc-3322ecbfe29a16e74c4f584d661b0b8018bb4031.zip
powerpc: Protect dl_powerpc_cpu_features on INIT_ARCH() [BZ #26615]
dl_powerpc_cpu_features also needs to be protected by __GLRO to check
for the _rtld_global_ro realocation before accessing it.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h b/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
index 17ddfcf528..c8fa07fadc 100644
--- a/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
+++ b/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
@@ -38,7 +38,7 @@
   unsigned long int hwcap = __GLRO(dl_hwcap); 			\
   unsigned long int __attribute__((unused)) hwcap2 = __GLRO(dl_hwcap2); \
   bool __attribute__((unused)) use_cached_memopt =		\
-    GLRO(dl_powerpc_cpu_features).use_cached_memopt;		\
+    __GLRO(dl_powerpc_cpu_features.use_cached_memopt);		\
   if (hwcap & PPC_FEATURE_ARCH_2_06)				\
     hwcap |= PPC_FEATURE_ARCH_2_05 |				\
 	     PPC_FEATURE_POWER5_PLUS |				\