aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/libunwind/files/libunwind-1.2-x32.patch')
-rw-r--r--sys-libs/libunwind/files/libunwind-1.2-x32.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-libs/libunwind/files/libunwind-1.2-x32.patch b/sys-libs/libunwind/files/libunwind-1.2-x32.patch
new file mode 100644
index 00000000..76437015
--- /dev/null
+++ b/sys-libs/libunwind/files/libunwind-1.2-x32.patch
@@ -0,0 +1,13 @@
+--- a/src/x86_64/Gos-linux.c
++++ b/src/x86_64/Gos-linux.c
+@@ -143,8 +143,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"(sc), "i"(SYS_rt_sigreturn)
+ : "memory");