From b722ea0bf37f407893afd3c69eacd3e47c4f368d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 11 Oct 2014 21:45:50 +0200 Subject: [PATCH] Add valgrind-3.10.0-aarch64-times.patch --- valgrind-3.10.0-aarch64-times.patch | 20 ++++++++++++++++++++ valgrind.spec | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 valgrind-3.10.0-aarch64-times.patch diff --git a/valgrind-3.10.0-aarch64-times.patch b/valgrind-3.10.0-aarch64-times.patch new file mode 100644 index 0000000..7bcb2bd --- /dev/null +++ b/valgrind-3.10.0-aarch64-times.patch @@ -0,0 +1,20 @@ +diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c +index e3f736b..dd13bda 100644 +--- a/coregrind/m_syswrap/syswrap-arm64-linux.c ++++ b/coregrind/m_syswrap/syswrap-arm64-linux.c +@@ -953,6 +953,7 @@ static SyscallTableEntry syscall_main_table[] = { + LINX_(__NR_setresuid, sys_setresuid), // 147 + LINXY(__NR_getresuid, sys_getresuid), // 148 + LINXY(__NR_getresgid, sys_getresgid), // 150 ++ GENXY(__NR_times, sys_times), // 153 + GENX_(__NR_setpgid, sys_setpgid), // 154 + GENX_(__NR_getpgid, sys_getpgid), // 155 + GENXY(__NR_uname, sys_newuname), // 160 +@@ -1068,7 +1069,6 @@ static SyscallTableEntry syscall_main_table[] = { + //ZZ + //ZZ GENX_(__NR_rmdir, sys_rmdir), // 40 + //ZZ LINXY(__NR_pipe, sys_pipe), // 42 +-//ZZ GENXY(__NR_times, sys_times), // 43 + //ZZ // GENX_(__NR_prof, sys_ni_syscall), // 44 + + //ZZ LINX_(__NR_setgid, sys_setgid16), // 46 diff --git a/valgrind.spec b/valgrind.spec index c71415f..c6d2e0a 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -62,6 +62,9 @@ Patch4: valgrind-3.9.0-ldso-supp.patch # https://bugs.kde.org/show_bug.cgi?id=278808#c6 Patch5: valgrind-3.10.0-old-ppc32-instr-magic.patch +# KDE#339853 arm64 times syscall unknown +Patch6: valgrind-3.10.0-aarch64-times.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 @@ -165,6 +168,7 @@ Valgrind User Manual for details. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -313,6 +317,9 @@ echo ===============END TESTING=============== %endif %changelog +* Sat Oct 11 2014 Mark Wielaard +- Add valgrind-3.10.0-aarch64-times.patch + * Mon Sep 15 2014 Mark Wielaard - 3.10.0-3 - Add valgrind-3.10.0-old-ppc32-instr-magic.patch.