From: Andy Polyakov Date: Wed, 29 Aug 2012 14:19:59 +0000 (+0000) Subject: x86cpuid.pl: hide symbols [backport from x86_64]. X-Git-Tag: master-post-reformat~1716 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6206682a35760eb6ddb25172df2ae9f03d12e594;p=oweals%2Fopenssl.git x86cpuid.pl: hide symbols [backport from x86_64]. --- 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 5972d06290..e02ee84258 100644 --- a/crypto/perlasm/x86gas.pl +++ b/crypto/perlasm/x86gas.pl @@ -251,4 +251,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 808049a17d..597b7a51a7 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl @@ -455,4 +455,7 @@ my $max = "ebp"; &initseg("OPENSSL_cpuid_setup"); +&hidden("OPENSSL_cpuid_setup"); +&hidden("OPENSSL_ia32cap_P"); + &asm_finish();