aes/asm/bsaes-armv7.pl: Replace adrl with add
authorKornel Dulęba <mindal@semihalf.com>
Wed, 8 Mar 2023 10:28:41 +0000 (11:28 +0100)
committerPauli <pauli@openssl.org>
Tue, 14 Mar 2023 21:22:51 +0000 (08:22 +1100)
commit27093ba73372935fe4ef91d0a45ce6ea90a1ac8e
tree92a928494c3b04541bc50fc1f92603e2d2182f1c
parent6b08b786ccba8fb84759a487cca439566a8678c2
aes/asm/bsaes-armv7.pl: Replace adrl with add

"adrl" is a pseudo-instruction used to calculate an address relative
to PC. It's not recognized by clang resulting in a compilation error.
I've stumbled upon it when trying to integrate the bsaes-armv7 assmebly
logic into FreeBSD kernel, which uses clang as it's default compiler.
Note that this affect the build only if BSAES_ASM_EXTENDED_KEY is
defined, which is not the default option in OpenSSL.

The solution here is to replace it with an add instruction.
This mimics what has already been done in !BSAES_ASM_EXTENDED_KEY logic.
Because of that I've marked this as trivial CLA.

CLA: trivial
Signed-off-by: Kornel Dulęba <mindal@semihalf.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20458)
crypto/aes/asm/bsaes-armv7.pl