Page MenuHomeFreeBSD

OpenSSL: aes/asm/bsaes-armv7.pl: Replace adrl with add
ClosedPublic

Authored by kd on Mar 15 2023, 11:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 2:01 AM
Unknown Object (File)
Fri, Apr 19, 9:25 PM
Unknown Object (File)
Feb 6 2024, 6:29 PM
Unknown Object (File)
Dec 28 2023, 8:31 AM
Unknown Object (File)
Dec 28 2023, 8:31 AM
Unknown Object (File)
Dec 28 2023, 8:31 AM
Unknown Object (File)
Dec 25 2023, 12:02 PM
Unknown Object (File)
Dec 11 2023, 4:59 AM
Subscribers

Details

Summary

//comment:
This change is needed in order to build ossl for armv7.
The base support for that is in D37420.
My intention here is to cherry-pick the OpenSSL patch and then re-generate armv7 ossl assembly logic.
I intend to have the commit message unchanged modulo the tags.

OpenSSL commit message:

"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.

Obtained from: OpenSSL commit 27093ba73372935fe4ef91d0a45ce6ea90a1ac8e

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable