Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 506bd37bd580d7382d7c58257dac4b1e502a887c 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] 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 | src/x86_64/Gos-linux.c | 4 ++-- |
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c |
| 15 | index 9e1acfc..8169d5a 100644 |
| 16 | --- a/src/x86_64/Gos-linux.c |
| 17 | +++ b/src/x86_64/Gos-linux.c |
| 18 | @@ -143,8 +143,8 @@ x86_64_sigreturn (unw_cursor_t *cursor) |
| 19 | |
| 20 | Debug (8, "resuming at ip=%llx via sigreturn(%p)\n", |
| 21 | (unsigned long long) c->dwarf.ip, sc); |
| 22 | - __asm__ __volatile__ ("mov %0, %%rsp;" |
| 23 | - "mov %1, %%rax;" |
| 24 | + __asm__ __volatile__ ("mov %q0, %%rsp;" |
| 25 | + "mov %q1, %%rax;" |
| 26 | "syscall" |
| 27 | :: "r"(sc), "i"(SYS_rt_sigreturn) |
| 28 | : "memory"); |
| 29 | -- |
| 30 | 2.8.0 |
| 31 | |