]> Savannah Git Hosting - gnulib.git/commitdiff
sigsegv: port to OpenBSD 6.8+ powerpc64
authorChristian Weisgerber <naddy@mips.inka.de>
Sat, 11 Sep 2021 20:51:13 +0000 (13:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Sep 2021 20:51:13 +0000 (13:51 -0700)
* lib/sigsegv.c (SIGSEGV_FAULT_STACKPOINTER):
Special case for __OpenBSD__ && __powerpc64__, needed due to:
https://github.com/openbsd/src/commit/5e649a8714ba05cf482011b7b7d1e5437b7c17db
which is part of the oldest currently-supported OpenBSD (6.8),
so we needn’t worry about older versions.

ChangeLog
lib/sigsegv.c

index a7fd469f49aac021254275e8957e33a46d92c2ca..b9795d6581acdde33b1a8329d292013ae90da210 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2021-09-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
+
+       sigsegv: port to OpenBSD 6.8+ powerpc64
+       * lib/sigsegv.c (SIGSEGV_FAULT_STACKPOINTER):
+       Special case for __OpenBSD__ && __powerpc64__, needed due to:
+       https://github.com/openbsd/src/commit/5e649a8714ba05cf482011b7b7d1e5437b7c17db
+       which is part of the oldest currently-supported OpenBSD (6.8),
+       so we needn’t worry about older versions.
+
 2021-09-09  Pádraig Brady  <P@draigBrady.com>
 
        maintainer-makefile: add 'can' to sc_prohibit_doubled_word
index 998c82768cb6f7aa0a418551645c9910851ff9c8..347b42644ad3b8bf0c5ef445a5035cdbcaf52278 100644 (file)
@@ -511,7 +511,14 @@ int libsigsegv_version = LIBSIGSEGV_VERSION;
 
 #  define SIGSEGV_FAULT_STACKPOINTER  scp->sc_regs[29]
 
-# elif defined __powerpc__ || defined __powerpc64__
+# elif defined __powerpc64__
+
+/* See the definition of 'struct sigcontext' in
+   openbsd-src/sys/arch/powerpc64/include/signal.h.  */
+
+#  define SIGSEGV_FAULT_STACKPOINTER  scp->sc_sp
+
+# elif defined __powerpc__
 
 /* See the definition of 'struct sigcontext' and 'struct trapframe' in
    openbsd-src/sys/arch/powerpc/include/signal.h.  */