summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch')
-rw-r--r--meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch b/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch
index 37ae8124cc..9941612387 100644
--- a/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch
+++ b/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch
@@ -1,7 +1,7 @@
1From 7a4fd5933cc795df85cdd85168fe54fbaec4dcec Mon Sep 17 00:00:00 2001 1From f2eae0af620925b3686410470fc6fbc66ec1dc52 Mon Sep 17 00:00:00 2001
2From: Christopher Larson <chris_larson@mentor.com> 2From: Christopher Larson <chris_larson@mentor.com>
3Date: Tue, 13 Dec 2016 09:50:34 -0700 3Date: Tue, 13 Dec 2016 09:50:34 -0700
4Subject: [PATCH 6/6] Fix for X32 4Subject: [PATCH] Fix for X32
5 5
6Apply patch to fix the X32 build from https://github.com/sjnewbury/x32. 6Apply patch to fix the X32 build from https://github.com/sjnewbury/x32.
7 7
@@ -13,10 +13,10 @@ Signed-off-by: Christopher Larson <chris_larson@mentor.com>
13 1 file changed, 2 insertions(+), 2 deletions(-) 13 1 file changed, 2 insertions(+), 2 deletions(-)
14 14
15diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c 15diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c
16index bd14234..be1cb5b 100644 16index b489329..0550005 100644
17--- a/src/x86_64/Gos-linux.c 17--- a/src/x86_64/Gos-linux.c
18+++ b/src/x86_64/Gos-linux.c 18+++ b/src/x86_64/Gos-linux.c
19@@ -145,8 +145,8 @@ x86_64_sigreturn (unw_cursor_t *cursor) 19@@ -146,8 +146,8 @@ x86_64_sigreturn (unw_cursor_t *cursor)
20 20
21 Debug (8, "resuming at ip=%llx via sigreturn(%p)\n", 21 Debug (8, "resuming at ip=%llx via sigreturn(%p)\n",
22 (unsigned long long) c->dwarf.ip, sc); 22 (unsigned long long) c->dwarf.ip, sc);
@@ -25,8 +25,5 @@ index bd14234..be1cb5b 100644
25+ __asm__ __volatile__ ("mov %q0, %%rsp;" 25+ __asm__ __volatile__ ("mov %q0, %%rsp;"
26+ "mov %q1, %%rax;" 26+ "mov %q1, %%rax;"
27 "syscall" 27 "syscall"
28 :: "r"(sc), "i"(SYS_rt_sigreturn) 28 :: "r"((uint64_t)sc), "i"(SYS_rt_sigreturn)
29 : "memory"); 29 : "memory");
30--
312.20.1
32