package/libopenssl: fix powerpc64 build
Buildroot commit f710640be5 bumped the
package to version 3.6.0 that includes upstream commit
https://github.com/openssl/openssl/commit/8f24a148e6f112045cf110c3e3f4e2415d9c11fe
which causes build errors on powerpc64.
The upstream commit was also backported to older libopenssl branches:
https://github.com/openssl/openssl/pull/28990#issuecomment-3675219918
but its first appearance on the buildroot master branch was with said
bump to 3.6.0.
This patch adds an upstream patch to fix the problem.
Fixes:
https://autobuild.buildroot.net/results/b28/b286ad40f2240a85b9cd0dc44e089d1d6babd3ea/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
2b31a28dce
commit
96f01932be
@@ -0,0 +1,69 @@
|
||||
From 5aaa7e5fdc59e88a13d2911cb86d814d4e2669da Mon Sep 17 00:00:00 2001
|
||||
From: Danny Tsen <dtsen@us.ibm.com>
|
||||
Date: Wed, 28 Jan 2026 07:23:13 -0500
|
||||
Subject: [PATCH] aes-gcm-ppc.pl: Removed .localentry directive
|
||||
|
||||
Otherwise there is mixing of ELFv1 ABI and ELFv2 ABI directives
|
||||
and PPC64 big endian builds fail.
|
||||
|
||||
Fixes #29815
|
||||
|
||||
Signed-off-by: Danny Tsen <dtsen@us.ibm.com>
|
||||
|
||||
Reviewed-by: Paul Dale <paul.dale@oracle.com>
|
||||
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
|
||||
Reviewed-by: Tomas Mraz <tomas@openssl.org>
|
||||
MergeDate: Tue Feb 3 08:39:50 2026
|
||||
(Merged from https://github.com/openssl/openssl/pull/29827)
|
||||
|
||||
Upstream: https://github.com/openssl/openssl/commit/5aaa7e5fdc59e88a13d2911cb86d814d4e2669da
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
crypto/modes/asm/aes-gcm-ppc.pl | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/crypto/modes/asm/aes-gcm-ppc.pl b/crypto/modes/asm/aes-gcm-ppc.pl
|
||||
index 68918a9305a2b..fd5dcc22a6117 100644
|
||||
--- a/crypto/modes/asm/aes-gcm-ppc.pl
|
||||
+++ b/crypto/modes/asm/aes-gcm-ppc.pl
|
||||
@@ -409,7 +409,6 @@
|
||||
################################################################################
|
||||
.align 4
|
||||
aes_gcm_crypt_1x:
|
||||
-.localentry aes_gcm_crypt_1x,0
|
||||
|
||||
cmpdi 5, 16
|
||||
bge __More_1x
|
||||
@@ -492,7 +491,6 @@
|
||||
################################################################################
|
||||
.align 4
|
||||
__Process_partial:
|
||||
-.localentry __Process_partial,0
|
||||
|
||||
# create partial mask
|
||||
vspltisb 16, -1
|
||||
@@ -564,7 +562,6 @@
|
||||
.global ppc_aes_gcm_encrypt
|
||||
.align 5
|
||||
ppc_aes_gcm_encrypt:
|
||||
-.localentry ppc_aes_gcm_encrypt,0
|
||||
|
||||
SAVE_REGS
|
||||
LOAD_HASH_TABLE
|
||||
@@ -752,7 +749,6 @@
|
||||
.global ppc_aes_gcm_decrypt
|
||||
.align 5
|
||||
ppc_aes_gcm_decrypt:
|
||||
-.localentry ppc_aes_gcm_decrypt, 0
|
||||
|
||||
SAVE_REGS
|
||||
LOAD_HASH_TABLE
|
||||
@@ -1032,7 +1028,6 @@
|
||||
.size ppc_aes_gcm_decrypt,.-ppc_aes_gcm_decrypt
|
||||
|
||||
aes_gcm_out:
|
||||
-.localentry aes_gcm_out,0
|
||||
|
||||
mr 3, 11 # return count
|
||||
|
||||
Reference in New Issue
Block a user