2021-11-25 09:09:10 +00:00
|
|
|
From fe1480783664c5b3b9e073b2eb470b32438d392a Mon Sep 17 00:00:00 2001
|
2020-09-04 19:21:25 +00:00
|
|
|
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
|
|
|
Date: Sun, 30 Aug 2020 17:59:22 +0200
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] gcc-go: Fix ucontext_t on PPC64
|
2020-09-04 19:21:25 +00:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Taken from Adélie Linux.
|
|
|
|
---
|
|
|
|
libgo/runtime/go-signal.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c
|
2021-11-25 09:09:10 +00:00
|
|
|
index d30d1603adc..57f6824eb9e 100644
|
2020-09-04 19:21:25 +00:00
|
|
|
--- a/libgo/runtime/go-signal.c
|
|
|
|
+++ b/libgo/runtime/go-signal.c
|
|
|
|
@@ -224,7 +224,7 @@ getSiginfo(siginfo_t *info, void *context __attribute__((unused)))
|
|
|
|
#elif defined(__alpha__) && defined(__linux__)
|
|
|
|
ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.sc_pc;
|
|
|
|
#elif defined(__PPC__) && defined(__linux__)
|
|
|
|
- ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.regs->nip;
|
|
|
|
+ ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gp_regs[32];
|
|
|
|
#elif defined(__PPC__) && defined(_AIX)
|
|
|
|
ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.jmp_context.iar;
|
|
|
|
#elif defined(__aarch64__) && defined(__linux__)
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
2021-10-27 19:14:43 +00:00
|
|
|
2.33.1
|
2020-11-13 10:30:52 +00:00
|
|
|
|