From 6206682a35760eb6ddb25172df2ae9f03d12e594 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 29 Aug 2012 14:19:59 +0000 Subject: [PATCH] x86cpuid.pl: hide symbols [backport from x86_64]. --- 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 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(); -- 2.25.1