summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Xin <wangxin03@loongson.cn>2025-01-08 02:18:47 +0100
committerTomas Mraz <tomas@openssl.org>2025-01-14 12:02:45 +0100
commitdd7a79fc6fe2169612a7000c9b765b3e1d6f06bb (patch)
tree09c7b6c1fc6ac1c1b05584cd9bdaf3bb3fd3a8a1
parentFix premature reuse of qp's in rcu locks (diff)
downloadopenssl-dd7a79fc6fe2169612a7000c9b765b3e1d6f06bb.tar.xz
openssl-dd7a79fc6fe2169612a7000c9b765b3e1d6f06bb.zip
LoongArch: we should access global symbol by la.global instead of
la.pcrel openssl will not be built successfully with binutils-2.43.50.20241230 which checks if global symbols are accessed by PC-relative in shared library. CLA: trivial Reviewed-by: Hugo Landau <hlandau@devever.net> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26336)
-rw-r--r--crypto/chacha/asm/chacha-loongarch64.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/chacha/asm/chacha-loongarch64.pl b/crypto/chacha/asm/chacha-loongarch64.pl
index 48e9b52794..d646d86166 100644
--- a/crypto/chacha/asm/chacha-loongarch64.pl
+++ b/crypto/chacha/asm/chacha-loongarch64.pl
@@ -72,7 +72,7 @@ ChaCha20_ctr32:
beqz $len,.Lno_data
ori $t3,$zero,64
- la.pcrel $t0,OPENSSL_loongarch_hwcap_P
+ la.global $t0,OPENSSL_loongarch_hwcap_P
ld.w $t0,$t0,0
bleu $len,$t3,.LChaCha20_1x # goto 1x when len <= 64