diff options
author | Tom Cosgrove <tom.cosgrove@arm.com> | 2023-07-27 08:58:00 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-08-01 19:12:33 +0200 |
commit | e7bb35e0c3dbd7ba5e6e4885d893191a3bf70356 (patch) | |
tree | fc9f8a776028aaa6a6975d12b9a3c9c42d41631b /crypto/armv4cpuid.pl | |
parent | 980014b4fffc82a314cc187acbeafb47b6635f83 (diff) | |
download | openssl-e7bb35e0c3dbd7ba5e6e4885d893191a3bf70356.zip openssl-e7bb35e0c3dbd7ba5e6e4885d893191a3bf70356.tar.gz openssl-e7bb35e0c3dbd7ba5e6e4885d893191a3bf70356.tar.bz2 |
Backport crypto/armcap.c from master branch
This backports 7b508cd1e1 together with .pl fixes
Makes the SIGILL-based code easier to read, and doesn't use it on Apple Silicon
or where getauxval() is present, thereby improving stability when debugging on
Darwin (macOS/iOS/etc) and in multi-threaded programs (both Darwin and Linux).
Fixes #21541
Change-Id: I07912f0ddcbfe15bf3c1550533855a6583d21b67
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21583)
Diffstat (limited to 'crypto/armv4cpuid.pl')
-rw-r--r-- | crypto/armv4cpuid.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/armv4cpuid.pl b/crypto/armv4cpuid.pl index 8991fd4..78dc90c 100644 --- a/crypto/armv4cpuid.pl +++ b/crypto/armv4cpuid.pl @@ -292,8 +292,7 @@ atomic_add_spinlock: .word 0 #endif -.comm OPENSSL_armcap_P,4,4 -.hidden OPENSSL_armcap_P +.extern OPENSSL_armcap_P ___ print $code; |