]> 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:02:02 +0000 (11:02 +0100)
commit19706a3ddf72de9c7d11d28e4d2e86ac80d75896
treec62a05399fa9bf7b6fdf9ef742b1d8649c7c2d56
parent6052078d410cb00b58ebd5eb44e8f746a4850321
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