]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
aarch64: fix branch target indications in arm64cpuid.pl and keccak1600
authorTom Cosgrove <tom.cosgrove@arm.com>
Mon, 7 Feb 2022 14:44:56 +0000 (14:44 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 2 Oct 2023 16:12:49 +0000 (17:12 +0100)
commit41777819236110907dd4cff98ef70dfd0629f744
treef375d33474cc59b4ba58b6a358fd1208102e603f
parent1bd9ca8b7548e5f573ae8186f3519f4bedff3a92
aarch64: fix branch target indications in arm64cpuid.pl and keccak1600

Add missing AARCH64_VALID_CALL_TARGET to armv8_rng_probe(). Also add
these to the functions defined by gen_random(), and note that this Perl
sub prints the assembler out directly, not going via the $code xlate
mechanism (and therefore coming before the include of arm_arch.h). So
fix this too.

In KeccakF1600_int, AARCH64_SIGN_LINK_REGISTER functions as
AARCH64_VALID_CALL_TARGET on BTI-only builds, so it needs to come before
the 'adr' line.

Change-Id: If241efe71591c88253a3e36647ced00300c3c1a3

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17653)

Obtained from: OpenSSL 3a23f01268ec
crypto/openssl/crypto/sha/asm/keccak1600-armv8.pl