public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/golang-x-sys] rawhide: Add patch that fixes pie binaries in ppc64le
Date: Tue, 20 Oct 2026 15:46:18 GMT [thread overview]
Message-ID: <179251117877.1.9486321768603590710.rpms-golang-x-sys-9b2ff4942faa@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/golang-x-sys
Branch : rawhide
Commit : 9b2ff4942faa3922327e08002af46c88d92736c0
Author : Álex Sáez <asm@redhat.com>
Date : 2026-10-20T17:23:14+02:00
Stats : +42/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/golang-x-sys/c/9b2ff4942faa3922327e08002af46c88d92736c0?branch=rawhide
Log:
Add patch that fixes pie binaries in ppc64le
---
diff --git a/golang-x-sys.spec b/golang-x-sys.spec
index 6254330..4b03018 100644
--- a/golang-x-sys.spec
+++ b/golang-x-sys.spec
@@ -25,6 +25,7 @@ Summary: Go packages for low-level interaction with the operating system
License: BSD-3-Clause
URL: %{gourl}
Source0: %{gosource}
+Patch0: ppc64-syscall-register.patch
%description %{common_description}
@@ -32,6 +33,7 @@ Source0: %{gosource}
%prep
%goprep
+%autopatch -p1
%generate_buildrequires
%go_generate_buildrequires
diff --git a/ppc64-syscall-register.patch b/ppc64-syscall-register.patch
new file mode 100644
index 0000000..1763bec
--- /dev/null
+++ b/ppc64-syscall-register.patch
@@ -0,0 +1,40 @@
+diff --git a/unix/asm_linux_ppc64x.s b/unix/asm_linux_ppc64x.s
+index 2e1f4c3e..daa85713 100644
+--- a/unix/asm_linux_ppc64x.s
++++ b/unix/asm_linux_ppc64x.s
+@@ -14,13 +14,13 @@
+ // The runtime may know about them.
+
+ TEXT ·Syscall(SB),NOSPLIT,$0-56
+- MOVD $syscall·Syscall(SB), R31
+- MOVD R31, CTR
++ MOVD $syscall·Syscall(SB), R12
++ MOVD R12, CTR
+ JMP (CTR)
+
+ TEXT ·Syscall6(SB),NOSPLIT,$0-80
+- MOVD $syscall·Syscall6(SB), R31
+- MOVD R31, CTR
++ MOVD $syscall·Syscall6(SB), R12
++ MOVD R12, CTR
+ JMP (CTR)
+
+ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
+@@ -39,13 +39,13 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
+ RET
+
+ TEXT ·RawSyscall(SB),NOSPLIT,$0-56
+- MOVD $syscall·RawSyscall(SB), R31
+- MOVD R31, CTR
++ MOVD $syscall·RawSyscall(SB), R12
++ MOVD R12, CTR
+ JMP (CTR)
+
+ TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
+- MOVD $syscall·RawSyscall6(SB), R31
+- MOVD R31, CTR
++ MOVD $syscall·RawSyscall6(SB), R12
++ MOVD R12, CTR
+ JMP (CTR)
+
+ TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
reply other threads:[~2026-10-20 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179251117877.1.9486321768603590710.rpms-golang-x-sys-9b2ff4942faa@fedoraproject.org \
--to=git-commits@fedoraproject.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