1 From 6206682a35760eb6ddb25172df2ae9f03d12e594 Mon Sep 17 00:00:00 2001 2 From: Andy Polyakov <appro (a] openssl.org> 3 Date: Wed, 29 Aug 2012 14:19:59 +0000 4 Subject: [PATCH] x86cpuid.pl: hide symbols [backport from x86_64]. 5 6 --- 7 crypto/perlasm/x86asm.pl | 2 ++ 8 crypto/perlasm/x86gas.pl | 2 ++ 9 crypto/x86cpuid.pl | 3 +++ 10 3 files changed, 7 insertions(+) 11 12 diff --git a/crypto/perlasm/x86asm.pl b/crypto/perlasm/x86asm.pl 13 index eb543db..3f190ae 100644 14 --- a/crypto/perlasm/x86asm.pl 15 +++ b/crypto/perlasm/x86asm.pl 16 @@ -257,4 +257,6 @@ sub ::asm_init 17 &file($filename); 18 } 19 20 +sub ::hidden {} 21 + 22 1; 23 diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl 24 index 5972d06..e02ee84 100644 25 --- a/crypto/perlasm/x86gas.pl 26 +++ b/crypto/perlasm/x86gas.pl 27 @@ -251,4 +251,6 @@ sub ::initseg 28 sub ::dataseg 29 { push(@out,".data\n"); } 30 31 +*::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf); 32 + 33 1; 34 diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl 35 index 808049a..597b7a5 100644 36 --- a/crypto/x86cpuid.pl 37 +++ b/crypto/x86cpuid.pl 38 @@ -455,4 +455,7 @@ 39 40 &initseg("OPENSSL_cpuid_setup"); 41 42 +&hidden("OPENSSL_cpuid_setup"); 43 +&hidden("OPENSSL_ia32cap_P"); 44 + 45 &asm_finish(); 46 -- 47 1.9.3 48 49