diff options
author | jsing <> | 2024-03-28 11:16:32 +0000 |
---|---|---|
committer | jsing <> | 2024-03-28 11:16:32 +0000 |
commit | 887a06d794a5c0f039ea396e17b6318669ef86d7 (patch) | |
tree | 22c37031d3b4a101dbbac0e447859021f4a0965c /src | |
parent | 11fe56cdd5d89a1badff9ce2a1296b29e07c6a9d (diff) | |
download | openbsd-887a06d794a5c0f039ea396e17b6318669ef86d7.tar.gz openbsd-887a06d794a5c0f039ea396e17b6318669ef86d7.tar.bz2 openbsd-887a06d794a5c0f039ea396e17b6318669ef86d7.zip |
Remove .init section that calls OPENSSL_cpuid_setup on amd64.
OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence
we do not need or want automatic initialisation on library load.
ok tb@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x86_64cpuid.pl | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x86_64cpuid.pl b/src/lib/libcrypto/x86_64cpuid.pl index 5e85c40c97..a735a97f60 100644 --- a/src/lib/libcrypto/x86_64cpuid.pl +++ b/src/lib/libcrypto/x86_64cpuid.pl | |||
@@ -15,17 +15,7 @@ open OUT,"| \"$^X\" $xlate $flavour $output"; | |||
15 | ($arg1,$arg2,$arg3,$arg4)=("%rdi","%rsi","%rdx","%rcx"); # Unix order | 15 | ($arg1,$arg2,$arg3,$arg4)=("%rdi","%rsi","%rdx","%rcx"); # Unix order |
16 | 16 | ||
17 | print<<___; | 17 | print<<___; |
18 | .extern OPENSSL_cpuid_setup | ||
19 | .hidden OPENSSL_cpuid_setup | ||
20 | .section .init | ||
21 | _CET_ENDBR | ||
22 | call OPENSSL_cpuid_setup | ||
23 | |||
24 | .extern OPENSSL_ia32cap_P | ||
25 | .hidden OPENSSL_ia32cap_P | ||
26 | |||
27 | .text | 18 | .text |
28 | |||
29 | .globl OPENSSL_ia32_cpuid | 19 | .globl OPENSSL_ia32_cpuid |
30 | .type OPENSSL_ia32_cpuid,\@abi-omnipotent | 20 | .type OPENSSL_ia32_cpuid,\@abi-omnipotent |
31 | .align 16 | 21 | .align 16 |