|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../musl/pkg/gcc/0033-gcc-go-Fix-ucontext_t-on-PPC64.patch
|
|
# Copyright (C) 2020 The OpenSDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
From a2da9c892a6b29a8067f20fda2d8a5e9a7b5193e Mon Sep 17 00:00:00 2001
|
|
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
|
Date: Sun, 30 Aug 2020 17:59:22 +0200
|
|
Subject: [PATCH] gcc-go: Fix ucontext_t on PPC64
|
|
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
|
|
index b429fdb2403..fd1c885f043 100644
|
|
--- 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__)
|