From 2f1c0508c1323f55ad36b75e2d4dc8593320f384 Mon Sep 17 00:00:00 2001 From: jsing Date: Thu, 28 Mar 2024 11:21:12 +0000 Subject: [PATCH] Remove .init section that calls OPENSSL_cpuid_setup on i386. OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence we do not need or want automatic initialisation on library load. --- lib/libcrypto/x86cpuid.pl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/libcrypto/x86cpuid.pl b/lib/libcrypto/x86cpuid.pl index d6ebede0f83..40014583934 100644 --- a/lib/libcrypto/x86cpuid.pl +++ b/lib/libcrypto/x86cpuid.pl @@ -150,8 +150,4 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &set_label("nocpuid"); &function_end("OPENSSL_ia32_cpuid"); -&external_label("OPENSSL_ia32cap_P"); - -&initseg("OPENSSL_cpuid_setup"); - &asm_finish(); -- 2.20.1