]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
LoongArch: we should access global symbol by la.global instead of
authorWang Xin <wangxin03@loongson.cn>
Wed, 8 Jan 2025 01:18:47 +0000 (01:18 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Jan 2025 11:02:45 +0000 (12:02 +0100)
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)

crypto/chacha/asm/chacha-loongarch64.pl

index 48e9b52794e0980fa33737f44e7f4e905410ce04..d646d861664790784cb87d1389244ac081463df9 100644 (file)
@@ -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