From: Andy Polyakov Date: Wed, 29 Aug 2012 14:24:18 +0000 (+0000) Subject: x86cpuid.pl: hide symbols [backport from x86_64, from HEAD]. X-Git-Tag: OpenSSL_1_0_2-beta1~584 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ebe87473c5ee01a0ffaada400c5f01fbe8a17ff;p=openssl x86cpuid.pl: hide symbols [backport from x86_64, from HEAD]. --- 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();