summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch
blob: 9941612387fc0bd76f1c851368f56f622d880554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From f2eae0af620925b3686410470fc6fbc66ec1dc52 Mon Sep 17 00:00:00 2001
From: Christopher Larson <chris_larson@mentor.com>
Date: Tue, 13 Dec 2016 09:50:34 -0700
Subject: [PATCH] Fix for X32

Apply patch to fix the X32 build from https://github.com/sjnewbury/x32.

Upstream-Status: Pending
Signed-off-by: Christopher Larson <chris_larson@mentor.com>

---
 src/x86_64/Gos-linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c
index b489329..0550005 100644
--- a/src/x86_64/Gos-linux.c
+++ b/src/x86_64/Gos-linux.c
@@ -146,8 +146,8 @@ x86_64_sigreturn (unw_cursor_t *cursor)
 
   Debug (8, "resuming at ip=%llx via sigreturn(%p)\n",
              (unsigned long long) c->dwarf.ip, sc);
-  __asm__ __volatile__ ("mov %0, %%rsp;"
-                        "mov %1, %%rax;"
+  __asm__ __volatile__ ("mov %q0, %%rsp;"
+                        "mov %q1, %%rax;"
                         "syscall"
                         :: "r"((uint64_t)sc), "i"(SYS_rt_sigreturn)
                         : "memory");