valgrind/valgrind-3.13.0-arm64-hwcap.patch
Mark Wielaard 39ca09ac42 3.13.0-3 - Add valgrind-3.13.0-arm64-hwcap.patch (#1464211)
KDE#381556 arm64: Handle feature registers access on 4.11 Linux kernel
Workaround that masks CPUID support in HWCAP on aarch64 (#1464211)
2017-06-23 12:18:37 +02:00

18 lines
748 B
Diff

diff --git a/coregrind/m_initimg/initimg-linux.c b/coregrind/m_initimg/initimg-linux.c
index 30e1f85..387beae 100644
--- a/coregrind/m_initimg/initimg-linux.c
+++ b/coregrind/m_initimg/initimg-linux.c
@@ -703,6 +703,12 @@ Addr setup_client_stack( void* init_sp,
(and anything above) are not supported by Valgrind. */
auxv->u.a_val &= VKI_HWCAP_S390_TE - 1;
}
+# elif defined(VGP_arm64_linux)
+ {
+ /* Linux 4.11 started pupulating this for arm64, but we
+ currently don't support any. */
+ auxv->u.a_val = 0;
+ }
# endif
break;
# if defined(VGP_ppc64be_linux) || defined(VGP_ppc64le_linux)