summaryrefslogtreecommitdiffstats
path: root/crypto/s390x_arch.h
diff options
context:
space:
mode:
authorJuergen Christ <jchrist@linux.ibm.com>2022-03-23 13:26:13 +0100
committerTomas Mraz <tomas@openssl.org>2022-03-25 14:18:56 +0100
commit37816ef5757e458be9648481e56bf698ee3bfbb1 (patch)
treeefc7dfd70c28ed74d4875897db5b4d218de79c94 /crypto/s390x_arch.h
parentFix formatting of NOTES-WINDOWS.md and doc-nits failure (diff)
downloadopenssl-37816ef5757e458be9648481e56bf698ee3bfbb1.tar.xz
openssl-37816ef5757e458be9648481e56bf698ee3bfbb1.zip
s390x: Hide internal cpuid symbol and function
The symbol OPENSSL_s390xcap_P and the OPENSSL_cpuid_setup function are not exported by the version script of OpenSSL. However, if someone uses the static library without the version script, these symbols all of a sudden become global symbols and their usage in assembler code does not correctly reflect that for PIC. Since these symbols should never be used outside of OpenSSL, hide them inside the binary. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17946)
Diffstat (limited to 'crypto/s390x_arch.h')
-rw-r--r--crypto/s390x_arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/s390x_arch.h b/crypto/s390x_arch.h
index fa920d14da..3b489b9144 100644
--- a/crypto/s390x_arch.h
+++ b/crypto/s390x_arch.h
@@ -72,6 +72,9 @@ struct OPENSSL_s390xcap_st {
unsigned long long kdsa[2];
};
+#if defined(__GNUC__) && defined(__linux)
+__attribute__ ((visibility("hidden")))
+#endif
extern struct OPENSSL_s390xcap_st OPENSSL_s390xcap_P;
/* Max number of 64-bit words currently returned by STFLE */