summaryrefslogtreecommitdiff
path: root/system/gcc/333-gccgo-signal-ppc64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/gcc/333-gccgo-signal-ppc64.patch')
-rw-r--r--system/gcc/333-gccgo-signal-ppc64.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/gcc/333-gccgo-signal-ppc64.patch b/system/gcc/333-gccgo-signal-ppc64.patch
new file mode 100644
index 000000000..304b71733
--- /dev/null
+++ b/system/gcc/333-gccgo-signal-ppc64.patch
@@ -0,0 +1,11 @@
+--- gcc-8.3.0/libgo/runtime/go-signal.c.old 2017-08-18 20:17:26.000000000 +0000
++++ gcc-8.3.0/libgo/runtime/go-signal.c 2019-02-27 20:25:02.560000000 +0000
+@@ -222,7 +222,7 @@
+ #endif
+ #ifdef __PPC__
+ #ifdef __linux__
+- ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.regs->nip;
++ ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gp_regs[32];
+ #endif
+ #ifdef _AIX
+ ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.jmp_context.iar;