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 eb543db..3f190ae 100644 (file)
@@ -257,4 +257,6 @@ EOF
     &file($filename);
 }
 
+sub ::hidden {}
+
 1;
index 5972d06..e02ee84 100644 (file)
@@ -251,4 +251,6 @@ ___
 sub ::dataseg
 {   push(@out,".data\n");   }
 
+*::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf);
+
 1;
index 808049a..597b7a5 100644 (file)
@@ -455,4 +455,7 @@ my $max = "ebp";
 
 &initseg("OPENSSL_cpuid_setup");
 
+&hidden("OPENSSL_cpuid_setup");
+&hidden("OPENSSL_ia32cap_P");
+
 &asm_finish();