summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch b/meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch
new file mode 100644
index 0000000000..3d5452ce4d
--- /dev/null
+++ b/meta-oe/recipes-extended/mozjs/mozjs-128/musl-disable-stackwalk.patch
@@ -0,0 +1,27 @@
1From d96e9a40e9da9163e0a4b3475178fe30c26deb19 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 22 Sep 2023 22:59:56 +0000
4Subject: [PATCH] Musl does not have stack unwinder like glibc therefore we can
5
6 not assume that its always available on musl, we do need to check for target
7 environment as well which could be musl or glibc.
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 mozglue/misc/StackWalk.cpp | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/mozglue/misc/StackWalk.cpp b/mozglue/misc/StackWalk.cpp
16index 18fd3464b0..d3d9208fdb 100644
17--- a/mozglue/misc/StackWalk.cpp
18+++ b/mozglue/misc/StackWalk.cpp
19@@ -50,7 +50,7 @@ using namespace mozilla;
20 # define HAVE___LIBC_STACK_END 0
21 #endif
22
23-#if (defined(linux) && \
24+#if (defined(linux) && defined(__GLIBC__) && \
25 ((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
26 defined(HAVE__UNWIND_BACKTRACE)) && \
27 (HAVE___LIBC_STACK_END || ANDROID))