From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] higan: add a patch to prevent elfv2 ppc64(le) crashes
Date: Tue, 16 Jul 2019 20:26:13 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13158@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
There is a new pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages higan-elfv2
https://github.com/void-linux/void-packages/pull/13158
higan: add a patch to prevent elfv2 ppc64(le) crashes
I was able to load an SNES ROM without segfaulting after this.
A patch file from https://github.com/void-linux/void-packages/pull/13158.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-higan-elfv2-13158.patch --]
[-- Type: application/text/x-diff, Size: 1206 bytes --]
From 6d772d4fdbe022199470dcd0773e82de8b1f71a3 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 16 Jul 2019 20:18:55 +0200
Subject: [PATCH] higan: add a patch to prevent elfv2 ppc64(le) crashes
[ci skip]
---
srcpkgs/higan/patches/ppc64-no-asm.patch | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 srcpkgs/higan/patches/ppc64-no-asm.patch
diff --git a/srcpkgs/higan/patches/ppc64-no-asm.patch b/srcpkgs/higan/patches/ppc64-no-asm.patch
new file mode 100644
index 00000000000..96287aaeb9b
--- /dev/null
+++ b/srcpkgs/higan/patches/ppc64-no-asm.patch
@@ -0,0 +1,16 @@
+Higan does not have matching assembly for ELFv2 ppc64 systems, so default
+to portable sjlj implementation before the bad ppc assembly can kick in.
+
+--- libco/libco.c
++++ libco/libco.c
+@@ -9,7 +9,9 @@
+ #include "amd64.c"
+ #elif defined(__arm__)
+ #include "arm.c"
+- #elif defined(_ARCH_PPC)
++ #elif defined(_ARCH_PPC) && (!defined(__powerpc64__) || \
++ !defined(_CALL_ELF) || (_CALL_ELF == 1))
++ /* this implementation is only for 32-bit ppc and ELFv1 ppc64 */
+ #include "ppc.c"
+ #elif defined(_WIN32)
+ #include "fiber.c"
next reply other threads:[~2019-07-16 18:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 18:26 voidlinux-github [this message]
2019-07-16 19:25 ` voidlinux-github
2019-07-16 19:38 ` voidlinux-github
2019-07-17 2:31 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 2:31 ` voidlinux-github
2019-07-18 5:38 ` [PR PATCH] [Merged]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13158@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).