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)
Tue, Oct 29, 1:01 PM
Unknown Object (File)
Sep 16 2024, 3:05 AM
Unknown Object (File)
Sep 1 2024, 11:41 AM
Unknown Object (File)
Sep 1 2024, 11:41 AM
Unknown Object (File)
Sep 1 2024, 11:41 AM
Unknown Object (File)
Sep 1 2024, 11:29 AM
Unknown Object (File)
Aug 15 2024, 10:13 AM
Unknown Object (File)
Aug 10 2024, 6:41 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

Lint
Lint Skipped
Unit
Tests Skipped