Commit 6bfa751d0e for openssl.org
commit 6bfa751d0e382a293a8572b7b05e4a65fb521ca6
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date: Fri Jul 31 23:30:59 2026 +0900
Fix Poly1305 SVE2 symbol visibility
poly1305-armv8 takes the address of poly1305_blocks_sve2 with a direct
ADRP/ADD sequence. Mark the SVE2 entry point hidden so ELF linkers bind
it locally when building shared libraries.
Fixes #31670
CLA: trivial
Reviewed-by: Milan Broz <mbroz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
MergeDate: Wed Aug 26 15:15:36 2026
(Merged from https://github.com/openssl/openssl/pull/32132)
diff --git a/crypto/poly1305/asm/poly1305-armv9-sve2.pl b/crypto/poly1305/asm/poly1305-armv9-sve2.pl
index 7f957f0188..a517327d05 100755
--- a/crypto/poly1305/asm/poly1305-armv9-sve2.pl
+++ b/crypto/poly1305/asm/poly1305-armv9-sve2.pl
@@ -304,6 +304,7 @@ poly1305_lazy_reduce_sve2:
// a VLA risc-v implementation in https://github.com/dot-asm/cryptogams.
//
.globl poly1305_blocks_sve2
+.hidden poly1305_blocks_sve2
.type poly1305_blocks_sve2,%function
.align 5
poly1305_blocks_sve2: