From 3ebe87473c5ee01a0ffaada400c5f01fbe8a17ff Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 29 Aug 2012 14:24:18 +0000 Subject: [PATCH] x86cpuid.pl: hide symbols [backport from x86_64, from HEAD]. --- crypto/perlasm/x86asm.pl | 2 ++ crypto/perlasm/x86gas.pl | 2 ++ crypto/x86cpuid.pl | 3 +++ 3 files changed, 7 insertions(+) diff --git a/crypto/perlasm/x86asm.pl b/crypto/perlasm/x86asm.pl index eb543db2f6..3f190ae590 100644 --- a/crypto/perlasm/x86asm.pl +++ b/crypto/perlasm/x86asm.pl @@ -257,4 +257,6 @@ EOF &file($filename); } +sub ::hidden {} + 1; diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl index 4b8786bf42..9df0a80a8c 100644 --- a/crypto/perlasm/x86gas.pl +++ b/crypto/perlasm/x86gas.pl @@ -249,4 +249,6 @@ ___ sub ::dataseg { push(@out,".data\n"); } +*::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf); + 1; diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl index c18b0e2486..d9ac9a8035 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl @@ -353,4 +353,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &initseg("OPENSSL_cpuid_setup"); +&hidden("OPENSSL_cpuid_setup"); +&hidden("OPENSSL_ia32cap_P"); + &asm_finish(); -- 2.25.1