summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-21 06:50:02 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-21 06:50:02 -0500
commitd39a0ce9dcbaf7928a37dbe5f875249ad34b0f31 (patch)
tree2cedc57d81e075f9d72dfff125bd4df13947a424
parent1cc4415e5d2f5b28e7b85c7e531b46a0df7f6ef0 (diff)
downloadpackages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.gz
packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.bz2
packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.xz
packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.zip
user/valgrind: Allow exec on ppc32 + ISA 3.0
This will crash wildly if you actually try to *use* ISA 3.0 instructions in the Valgrind core. But if you don't, it works fine, and it's the only way to do Valgrind on a Power9 while running in 32-bit mode.
-rw-r--r--user/valgrind/APKBUILD2
-rw-r--r--user/valgrind/ppc32.patch15
2 files changed, 17 insertions, 0 deletions
diff --git a/user/valgrind/APKBUILD b/user/valgrind/APKBUILD
index 7a038a2bd..b64d13df7 100644
--- a/user/valgrind/APKBUILD
+++ b/user/valgrind/APKBUILD
@@ -18,6 +18,7 @@ subpackages="$pkgname-dev $pkgname-doc"
source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2
0001-Ensure-ELFv2-is-supported-on-PPC64.patch
arm.patch
+ ppc32.patch
ppc64-support-tkill.patch
"
@@ -62,4 +63,5 @@ package() {
sha512sums="3e86cda2f2d6cd30807fac7933ba2c46a97a2b4a868db989e6b0cceeadf029af7ee34ba900466a346948289aacb30f4399799bb83b97cc49a4d2d810441e5cfd valgrind-3.21.0.tar.bz2
f90aa3cef5d3561d4602ff63b8f355b8427cbe6bb2ecd6bfc2e2bb063915fa40a70d923dbc60a643ee3fb7bcfbbddac049c6f6133c541189dd82b891f7ad9dbc 0001-Ensure-ELFv2-is-supported-on-PPC64.patch
9ee297d1b2b86891584443ad0caadc4977e1447979611ccf1cc55dbee61911b0b063bc4ad936d86c451cedae410cb3219b5a088b2ad0aa17df182d564fe36cfe arm.patch
+25804fafe2372808c29233ec7415a94633ef17c72c9bd1d78a5c1da53fad2ed8e76da2d0923ff0a73fad8a86b7709c5ea3774b35be6a5b4c1ef1a55bc86b2c18 ppc32.patch
daf819d0f9bbbaf4243c7bf931fed840f1f55304df1b45d4a72ceaf8403b8e0e1fc8079343b86106f0741aa812560a466389d7d3878c5547f3ff7a9e46e63df7 ppc64-support-tkill.patch"
diff --git a/user/valgrind/ppc32.patch b/user/valgrind/ppc32.patch
new file mode 100644
index 000000000..093eae132
--- /dev/null
+++ b/user/valgrind/ppc32.patch
@@ -0,0 +1,15 @@
+--- valgrind-3.21.0/VEX/priv/main_main.c.old 2023-01-07 14:48:48.000000000 +0000
++++ valgrind-3.21.0/VEX/priv/main_main.c 2024-10-01 21:53:47.879017945 +0000
+@@ -2047,10 +2047,10 @@
+ }
+
+ /* ISA 3.0 not supported on 32-bit machines */
+- if ((hwcaps & VEX_HWCAPS_PPC32_ISA3_0) != 0) {
++ /*if ((hwcaps & VEX_HWCAPS_PPC32_ISA3_0) != 0) {
+ invalid_hwcaps(arch, hwcaps,
+ "ISA 3.0 not supported in 32-bit mode \n");
+- }
++ }*/
+ return;
+ }
+