summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Actually-use-the-hint-space-instruction-to-strip-PAC.patch32
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-abseil-ppc-fixes.patch11
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.1.bb (renamed from meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.0.bb)7
3 files changed, 7 insertions, 43 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Actually-use-the-hint-space-instruction-to-strip-PAC.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Actually-use-the-hint-space-instruction-to-strip-PAC.patch
deleted file mode 100644
index a235797de9..0000000000
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Actually-use-the-hint-space-instruction-to-strip-PAC.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 5852b47a81e5334a667d1e12dbfa55c0f8111100 Mon Sep 17 00:00:00 2001
2From: Derek Mauro <dmauro@google.com>
3Date: Fri, 7 Feb 2025 08:49:06 -0800
4Subject: [PATCH] Actually use the hint space instruction to strip PAC bits for
5 return addresses in stack traces as the comment says
6
7https://android.googlesource.com/platform/libcore/+/71f2c75111e87091616f0f3b86bea6c4d345dad1/src/hotspot/os_cpu/linux_aarch64/pauth_linux_aarch64.inline.hpp
8
9PiperOrigin-RevId: 724360415
10Change-Id: I691160e43354131a04919765ce283e07c3c933a9
11Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
12Signed-off-by: Alex Kiernan <alexk@a-squared-projects.uk>
13Upstream-Status: Backport [https://github.com/abseil/abseil-cpp/commit/5852b47a81e5334a667d1e12dbfa55c0f8111100]
14---
15 absl/debugging/internal/stacktrace_aarch64-inl.inc | 4 +++-
16 1 file changed, 3 insertions(+), 1 deletion(-)
17
18diff --git a/absl/debugging/internal/stacktrace_aarch64-inl.inc b/absl/debugging/internal/stacktrace_aarch64-inl.inc
19index 4490c4e13cae..dccadaeb7c24 100644
20--- a/absl/debugging/internal/stacktrace_aarch64-inl.inc
21+++ b/absl/debugging/internal/stacktrace_aarch64-inl.inc
22@@ -188,7 +188,9 @@ inline void* ClearPacBits(void* ptr) {
23 // compatibility with ARM platforms that do not support pointer
24 // authentication, we use the hint space instruction XPACLRI instead. Hint
25 // space instructions behave as NOPs on unsupported platforms.
26- asm("xpaclri" : "+r"(x30));
27+#define ABSL_XPACLRI_HINT "hint #0x7;"
28+ asm(ABSL_XPACLRI_HINT : "+r"(x30)); // asm("xpaclri" : "+r"(x30));
29+#undef ABSL_XPACLRI_HINT
30 return x30;
31 }
32
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-abseil-ppc-fixes.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-abseil-ppc-fixes.patch
index ba0cd66920..a0b99dd206 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-abseil-ppc-fixes.patch
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-abseil-ppc-fixes.patch
@@ -1,4 +1,4 @@
1From f9607924225ca59fb6c60222e6424b84e6f70029 Mon Sep 17 00:00:00 2001 1From 5891332fecd3bf707b58dda56b4b3f80583b5ef9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 21 Sep 2024 20:53:06 +0800 3Date: Sat, 21 Sep 2024 20:53:06 +0800
4Subject: [PATCH] abseil: ppc fixes 4Subject: [PATCH] abseil: ppc fixes
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
23 4 files changed, 12 insertions(+), 5 deletions(-) 23 4 files changed, 12 insertions(+), 5 deletions(-)
24 24
25diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc 25diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc
26index a0bf3a65..103b4f6a 100644 26index 68f92730..5dbfaab6 100644
27--- a/absl/base/internal/unscaledcycleclock.cc 27--- a/absl/base/internal/unscaledcycleclock.cc
28+++ b/absl/base/internal/unscaledcycleclock.cc 28+++ b/absl/base/internal/unscaledcycleclock.cc
29@@ -20,7 +20,7 @@ 29@@ -20,7 +20,7 @@
@@ -86,10 +86,10 @@ index 3dd6ba1a..f923b055 100644
86 return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); 86 return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]);
87 #elif defined(__s390__) && !defined(__s390x__) 87 #elif defined(__s390__) && !defined(__s390x__)
88diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h 88diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h
89index 3929b1b7..23d5e504 100644 89index 88949fe9..4e26a6b7 100644
90--- a/absl/debugging/internal/stacktrace_config.h 90--- a/absl/debugging/internal/stacktrace_config.h
91+++ b/absl/debugging/internal/stacktrace_config.h 91+++ b/absl/debugging/internal/stacktrace_config.h
92@@ -60,7 +60,7 @@ 92@@ -67,7 +67,7 @@
93 #elif defined(__i386__) || defined(__x86_64__) 93 #elif defined(__i386__) || defined(__x86_64__)
94 #define ABSL_STACKTRACE_INL_HEADER \ 94 #define ABSL_STACKTRACE_INL_HEADER \
95 "absl/debugging/internal/stacktrace_x86-inl.inc" 95 "absl/debugging/internal/stacktrace_x86-inl.inc"
@@ -98,6 +98,3 @@ index 3929b1b7..23d5e504 100644
98 #define ABSL_STACKTRACE_INL_HEADER \ 98 #define ABSL_STACKTRACE_INL_HEADER \
99 "absl/debugging/internal/stacktrace_powerpc-inl.inc" 99 "absl/debugging/internal/stacktrace_powerpc-inl.inc"
100 #elif defined(__aarch64__) 100 #elif defined(__aarch64__)
101--
1022.25.1
103
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.0.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.1.bb
index f217d4daf8..5368dfaada 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.0.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250127.1.bb
@@ -7,15 +7,14 @@ SECTION = "libs"
7LICENSE = "Apache-2.0" 7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915"
9 9
10SRCREV = "9ac7062b1860d895fb5a8cbf58c3e9ef8f674b5f" 10SRCREV = "d9e4955c65cd4367dd6bf46f4ccb8cd3d100540b"
11BRANCH = "lts_2025_01_27" 11BRANCH = "lts_2025_01_27"
12SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \ 12SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \
13 file://0001-absl-always-use-asm-sgidefs.h.patch \ 13 file://0001-absl-always-use-asm-sgidefs.h.patch \
14 file://0002-Remove-maes-option-from-cross-compilation.patch \ 14 file://0002-Remove-maes-option-from-cross-compilation.patch \
15 file://0003-Remove-neon-option-from-cross-compilation.patch \ 15 file://0003-Remove-neon-option-from-cross-compilation.patch \
16 file://0004-abseil-ppc-fixes.patch \ 16 file://0004-abseil-ppc-fixes.patch \
17 file://0001-Actually-use-the-hint-space-instruction-to-strip-PAC.patch \ 17 "
18 "
19 18
20S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
21 20