From: jsing Date: Thu, 28 Mar 2024 11:21:12 +0000 (+0000) Subject: Remove .init section that calls OPENSSL_cpuid_setup on i386. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2f1c0508c1323f55ad36b75e2d4dc8593320f384;p=openbsd 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. --- 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();