x86cpuid.pl: hide symbols [backport from x86_64, from HEAD].
authorAndy Polyakov <appro@openssl.org>
Wed, 29 Aug 2012 14:24:18 +0000 (14:24 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 29 Aug 2012 14:24:18 +0000 (14:24 +0000)
crypto/perlasm/x86asm.pl
crypto/perlasm/x86gas.pl
crypto/x86cpuid.pl

index eb543db2f66eb979371d67e2e25f4e6a5cc861cd..3f190ae590bedc911f98bc36901ec565abdfaa72 100644 (file)
@@ -257,4 +257,6 @@ EOF
     &file($filename);
 }
 
+sub ::hidden {}
+
 1;
index 4b8786bf42f9049a2925bac4cf313b6881b7c75b..9df0a80a8c8827b63b624fc6145a2b9bf77d3500 100644 (file)
@@ -249,4 +249,6 @@ ___
 sub ::dataseg
 {   push(@out,".data\n");   }
 
+*::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf);
+
 1;
index c18b0e2486d6ead7578d88a0cb227995b93eb67f..d9ac9a803589c5c48074c8d3cba107c541daa80c 100644 (file)
@@ -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();