From 96f01932be024eebad8e6edef121641eeb16ffd7 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 4 Feb 2026 08:32:38 +0100 Subject: [PATCH] package/libopenssl: fix powerpc64 build Buildroot commit f710640be5869bb3716e254916ae614f79002f2f 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 Signed-off-by: Peter Korsgaard --- ...ppc.pl-Removed-.localentry-directive.patch | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 package/libopenssl/0004-aes-gcm-ppc.pl-Removed-.localentry-directive.patch diff --git a/package/libopenssl/0004-aes-gcm-ppc.pl-Removed-.localentry-directive.patch b/package/libopenssl/0004-aes-gcm-ppc.pl-Removed-.localentry-directive.patch new file mode 100644 index 0000000000..7c507a2687 --- /dev/null +++ b/package/libopenssl/0004-aes-gcm-ppc.pl-Removed-.localentry-directive.patch @@ -0,0 +1,69 @@ +From 5aaa7e5fdc59e88a13d2911cb86d814d4e2669da Mon Sep 17 00:00:00 2001 +From: Danny Tsen +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 + +Reviewed-by: Paul Dale +Reviewed-by: Shane Lontis +Reviewed-by: Tomas Mraz +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 +--- + 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 +