sync ports with The Matrix

This commit is contained in:
purplerain 2023-09-08 05:21:37 +00:00
parent ec769495ab
commit f5034afcba
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
3108 changed files with 91999 additions and 80269 deletions

View file

@ -1,8 +1,9 @@
COMMENT = library for handling page faults in user mode
DISTNAME = libsigsegv-2.12
DISTNAME = libsigsegv-2.14
SHARED_LIBS = sigsegv 1.0
CATEGORIES = devel
REVISION = 0
HOMEPAGE = https://www.gnu.org/software/libsigsegv/

View file

@ -1,2 +1,2 @@
SHA256 (libsigsegv-2.12.tar.gz) = OuGvNZ7rqk/8WJahruNWjAUsmYeTFqGrV/j+F4nDkLY=
SIZE (libsigsegv-2.12.tar.gz) = 451408
SHA256 (libsigsegv-2.14.tar.gz) = zaw5QYAzZM+BqQhJm+t5wgDq1gtrW0DK0ST9HgbKopU=
SIZE (libsigsegv-2.14.tar.gz) = 464658

View file

@ -3,9 +3,9 @@ https://savannah.gnu.org/bugs/?58829
Index: src/fault-openbsd-powerpc.h
--- src/fault-openbsd-powerpc.h.orig
+++ src/fault-openbsd-powerpc.h
@@ -17,7 +17,14 @@
@@ -25,9 +25,16 @@
#include "fault-openbsd.h"
#else /* 32-bit */
-/* See the definition of 'struct sigcontext' and 'struct trapframe' in
- openbsd-src/sys/arch/powerpc/include/signal.h. */
@ -18,5 +18,7 @@ Index: src/fault-openbsd-powerpc.h
+#ifdef __powerpc64__
+#define SIGSEGV_FAULT_STACKPOINTER scp->sc_sp
+#else
#define SIGSEGV_FAULT_STACKPOINTER scp->sc_frame.fixreg[1]
# define SIGSEGV_FAULT_STACKPOINTER scp->sc_frame.fixreg[1]
+#endif
#endif

View file

@ -0,0 +1,12 @@
Index: src/handler-unix.c
--- src/handler-unix.c.orig
+++ src/handler-unix.c
@@ -382,7 +382,7 @@ install_for (int sig)
struct sigaction action;
#ifdef SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO
- action.sa_sigaction = &sigsegv_handler;
+ action.sa_sigaction = (void (*) (int, siginfo_t *, void *)) &sigsegv_handler;
#else
action.sa_handler = (void (*) (int)) &sigsegv_handler;
#endif

View file

@ -1,4 +1,4 @@
include/sigsegv.h
lib/libsigsegv.a
@static-lib lib/libsigsegv.a
lib/libsigsegv.la
@lib lib/libsigsegv.so.${LIBsigsegv_VERSION}