diff options
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.patch | 32 |
1 files changed, 32 insertions, 0 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 new file mode 100644 index 0000000000..37ae8124cc --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind/0006-Fix-for-X32.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 7a4fd5933cc795df85cdd85168fe54fbaec4dcec Mon Sep 17 00:00:00 2001 | ||
2 | From: Christopher Larson <chris_larson@mentor.com> | ||
3 | Date: Tue, 13 Dec 2016 09:50:34 -0700 | ||
4 | Subject: [PATCH 6/6] Fix for X32 | ||
5 | |||
6 | Apply patch to fix the X32 build from https://github.com/sjnewbury/x32. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
10 | |||
11 | --- | ||
12 | src/x86_64/Gos-linux.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c | ||
16 | index bd14234..be1cb5b 100644 | ||
17 | --- a/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) | ||
20 | |||
21 | Debug (8, "resuming at ip=%llx via sigreturn(%p)\n", | ||
22 | (unsigned long long) c->dwarf.ip, sc); | ||
23 | - __asm__ __volatile__ ("mov %0, %%rsp;" | ||
24 | - "mov %1, %%rax;" | ||
25 | + __asm__ __volatile__ ("mov %q0, %%rsp;" | ||
26 | + "mov %q1, %%rax;" | ||
27 | "syscall" | ||
28 | :: "r"(sc), "i"(SYS_rt_sigreturn) | ||
29 | : "memory"); | ||
30 | -- | ||
31 | 2.20.1 | ||
32 | |||