]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix detection of ARMv7 and ARM64 CPU features on FreeBSD
authorAllan Jude <allanjude@FreeBSD.org>
Fri, 19 Nov 2021 15:14:30 +0000 (15:14 +0000)
committerTomas Mraz <tomas@openssl.org>
Wed, 24 Nov 2021 10:01:27 +0000 (11:01 +0100)
commit0911d28ffad75ef1190e91f4f9feaa6d01cb714d
tree008660350b487b95fa37a2becd4c95d157a30118
parent1aa96159b0711369de9bf45b20327414cdb6b991
Fix detection of ARMv7 and ARM64 CPU features on FreeBSD

OpenSSL assumes AT_HWCAP = 16 (as on Linux), but on FreeBSD AT_HWCAP = 25
Switch to using AT_HWCAP, and setting it to 16 if it is not defined.

OpenSSL calls elf_auxv_info() with AT_CANARY which returns ENOENT
resulting in all ARM acceleration features being disabled.

CLA: trivial

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17082)

(cherry picked from commit c1dabe26e3e96cdce0ffc929e9677840ad089ba5)
crypto/armcap.c