Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] boost: add patch for context on ppc64
@ 2019-05-04  2:42 voidlinux-github
  2019-05-04  6:00 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-05-04  2:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

There is a new pull request by q66 against master on the void-packages repository

https://github.com/void-ppc64/void-packages boost
https://github.com/void-linux/void-packages/pull/11479

boost: add patch for context on ppc64
This fixes the ontop_fcontext function of boost::context on ppc64.

A patch file from https://github.com/void-linux/void-packages/pull/11479.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-boost-11479.patch --]
[-- Type: application/text/x-diff, Size: 1788 bytes --]

From c4f3cdbe411d26b7463f630c59b44a0a2290bb84 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sat, 4 May 2019 04:39:19 +0200
Subject: [PATCH] boost: add patch for context on ppc64

This fixes the ontop_fcontext function of boost::context on
ppc64.

[ci skip]
---
 srcpkgs/boost/patches/ppc64-context.patch | 30 +++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 srcpkgs/boost/patches/ppc64-context.patch

diff --git a/srcpkgs/boost/patches/ppc64-context.patch b/srcpkgs/boost/patches/ppc64-context.patch
new file mode 100644
index 00000000000..a8d71e764cc
--- /dev/null
+++ b/srcpkgs/boost/patches/ppc64-context.patch
@@ -0,0 +1,30 @@
+From 2354eca9b776a6739112833f64754108cc0d1dc5 Mon Sep 17 00:00:00 2001
+From: Shawn Anastasio <shawn@anastas.io>
+Date: Fri, 3 May 2019 20:18:11 -0500
+Subject: [PATCH] Fix ABI violation on ppc64 ELFv2, fixes #72
+
+The existing ontop_fcontext implementation for ppc64 ELFv2
+violates the ABI by not storing the callback entry address
+in %r12 before branching. This results in crashes on this
+platform.
+
+This commit addresses this and allows the context library
+to function as expected on ppc64 platforms using the ELFv2 ABI.
+---
+ src/asm/ontop_ppc64_sysv_elf_gas.S | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/asm/ontop_ppc64_sysv_elf_gas.S b/src/asm/ontop_ppc64_sysv_elf_gas.S
+index d54b16e7..cd97f456 100644
+--- libs/context/src/asm/ontop_ppc64_sysv_elf_gas.S
++++ libs/context/src/asm/ontop_ppc64_sysv_elf_gas.S
+@@ -174,6 +174,9 @@ ontop_fcontext:
+     # restore CTR
+     mtctr  %r5
+ 
++    # store cb entrypoint in %r12, used for TOC calculation
++    mr %r12, %r5
++
+     # copy transfer_t into ontop_fn arg registers
+     mr  %r3, %r7
+     # arg pointer already in %r4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: boost: add patch for context on ppc64
  2019-05-04  2:42 [PR PATCH] boost: add patch for context on ppc64 voidlinux-github
@ 2019-05-04  6:00 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-05-04  6:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

There's a merged pull request on the void-packages repository

boost: add patch for context on ppc64
https://github.com/void-linux/void-packages/pull/11479
Description: This fixes the ontop_fcontext function of boost::context on ppc64.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-04  6:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-04  2:42 [PR PATCH] boost: add patch for context on ppc64 voidlinux-github
2019-05-04  6:00 ` [PR PATCH] [Merged]: " voidlinux-github

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).