summaryrefslogtreecommitdiff
path: root/user/libsigsegv/musl-ppc32.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-11 21:52:51 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-11 21:52:51 +0000
commita5ce3f8309b0f59316fffa7219bd04f726b08ff5 (patch)
tree0cb02cce8de6e72b59626094b861658f4a7cd558 /user/libsigsegv/musl-ppc32.patch
parent63a154bcdf345cdf15c295e1616dca868ba0a4c3 (diff)
downloadpackages-a5ce3f8309b0f59316fffa7219bd04f726b08ff5.tar.gz
packages-a5ce3f8309b0f59316fffa7219bd04f726b08ff5.tar.bz2
packages-a5ce3f8309b0f59316fffa7219bd04f726b08ff5.tar.xz
packages-a5ce3f8309b0f59316fffa7219bd04f726b08ff5.zip
user/libsigsegv: Port to 32-bit PowerPC
Diffstat (limited to 'user/libsigsegv/musl-ppc32.patch')
-rw-r--r--user/libsigsegv/musl-ppc32.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/user/libsigsegv/musl-ppc32.patch b/user/libsigsegv/musl-ppc32.patch
new file mode 100644
index 000000000..75e10a45f
--- /dev/null
+++ b/user/libsigsegv/musl-ppc32.patch
@@ -0,0 +1,10 @@
+--- libsigsegv-2.12/src/fault-linux-powerpc.h.old 2017-03-04 15:28:15.000000000 +0000
++++ libsigsegv-2.12/src/fault-linux-powerpc.h 2020-05-11 21:49:56.190783142 +0000
+@@ -33,6 +33,6 @@
+ # if 0
+ # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
+ # else
+-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
+ # endif
+ #endif