diff --git a/valgrind-3.13.0-arm64-hwcap.patch b/valgrind-3.13.0-arm64-hwcap.patch new file mode 100644 index 0000000..8f2a070 --- /dev/null +++ b/valgrind-3.13.0-arm64-hwcap.patch @@ -0,0 +1,17 @@ +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) diff --git a/valgrind.spec b/valgrind.spec index 2b0bbbc..b955974 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -3,7 +3,7 @@ Summary: Tool for finding memory management bugs in programs Name: %{?scl_prefix}valgrind Version: 3.13.0 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 License: GPLv2+ URL: http://www.valgrind.org/ @@ -101,6 +101,10 @@ Patch5: valgrind-3.13.0-epoll_pwait.patch # KDE#381274 powerpc too chatty even with --sigill-diagnostics=no Patch6: valgrind-3.13.0-ppc64-diag.patch +# KDE#381556 arm64: Handle feature registers access on 4.11 Linux kernel +# Workaround that masks CPUID support in HWCAP on aarch64 (#1464211) +Patch7: valgrind-3.13.0-arm64-hwcap.patch + %if %{build_multilib} # Ensure glibc{,-devel} is installed for both multilib arches BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so @@ -221,6 +225,7 @@ Valgrind User Manual for details. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -423,6 +428,9 @@ echo ===============END TESTING=============== %endif %changelog +* Fri Jun 23 2017 Mark Wielaard 3.13.0-3 +- Add valgrind-3.13.0-arm64-hwcap.patch (#1464211) + * Sat Jun 17 2017 Mark Wielaard 3.13.0-2 - Add valgrind-3.13.0-ppc64-check-no-vsx.patch - Add valgrind-3.13.0-epoll_pwait.patch (#1462258)