2020-11-13 10:30:52 +00:00
|
|
|
From d9942a2e54f69dee9c03e5e4339a6c62473e6845 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:45 +0200
|
2020-11-13 10:30:52 +00:00
|
|
|
Subject: [PATCH 32/39] gcc-go: Fix handling of signal 34 on musl
|
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/mksigtab.sh | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh
|
|
|
|
index 11e4ec436bd..fe866eacb27 100644
|
|
|
|
--- a/libgo/mksigtab.sh
|
|
|
|
+++ b/libgo/mksigtab.sh
|
|
|
|
@@ -82,7 +82,7 @@ checksig _SIGPWR '{_SigNotify, "SIGPWR: power failure restart"}'
|
|
|
|
checksig _SIGEMT '{_SigThrow, "SIGEMT: emulate instruction executed"}'
|
|
|
|
checksig _SIGINFO '{_SigNotify, "SIGINFO: status request from keyboard"}'
|
|
|
|
checksig _SIGTHR '{_SigNotify, "SIGTHR: reserved"}'
|
|
|
|
-checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
|
|
|
|
+#checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
|
|
|
|
checksig _SIGWAITING '{_SigNotify, "SIGWAITING: reserved signal no longer used by"}'
|
|
|
|
checksig _SIGLWP '{_SigNotify, "SIGLWP: reserved signal no longer used by"}'
|
|
|
|
checksig _SIGFREEZE '{_SigNotify, "SIGFREEZE: special signal used by CPR"}'
|
|
|
|
@@ -95,10 +95,12 @@ checksig _SIGLOST ' {_SigNotify, "SIGLOST: resource lost (Sun); server died (G
|
|
|
|
|
|
|
|
# Special handling of signals 32 and 33 on GNU/Linux systems,
|
|
|
|
# because they are special to glibc.
|
|
|
|
+# Signal 34 is additionally special to Linux systems with musl.
|
|
|
|
if test "${GOOS}" = "linux"; then
|
|
|
|
- SIGLIST=$SIGLIST"_32__33_"
|
|
|
|
+ SIGLIST=$SIGLIST"_32__33__34_"
|
|
|
|
echo ' 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */'
|
|
|
|
echo ' 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */'
|
|
|
|
+ echo ' 34: {_SigSetStack + _SigUnblock, "signal 34"}, /* see issue 30062 */'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "${GOOS}" = "aix"; then
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
|
|
|
2.28.0
|
|
|
|
|