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

index eb543db2f66eb979371d67e2e25f4e6a5cc861cd..3f190ae590bedc911f98bc36901ec565abdfaa72 100644 (file)
@@ -257,4 +257,6 @@ EOF
     &file($filename);
 }
 
     &file($filename);
 }
 
+sub ::hidden {}
+
 1;
 1;
index 5972d062906d675e2ee9c91bc6582844bbaccec9..e02ee842588209a1aa9131132cf1c8a60cb4dc75 100644 (file)
@@ -251,4 +251,6 @@ ___
 sub ::dataseg
 {   push(@out,".data\n");   }
 
 sub ::dataseg
 {   push(@out,".data\n");   }
 
+*::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf);
+
 1;
 1;
index 808049a17db82ee8161bfe2230a8dee387f522fa..597b7a51a71fa06a119c1a36e3defc6e31c77d0f 100644 (file)
@@ -455,4 +455,7 @@ my $max = "ebp";
 
 &initseg("OPENSSL_cpuid_setup");
 
 
 &initseg("OPENSSL_cpuid_setup");
 
+&hidden("OPENSSL_cpuid_setup");
+&hidden("OPENSSL_ia32cap_P");
+
 &asm_finish();
 &asm_finish();