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 */ diff --git a/crypto/s390xcap.c b/crypto/s390xcap.c index f8e0234968..d433df98eb 100644 --- a/crypto/s390xcap.c +++ b/crypto/s390xcap.c @@ -74,6 +74,9 @@ void OPENSSL_s390x_functions(void); struct OPENSSL_s390xcap_st OPENSSL_s390xcap_P; +#if defined(__GNUC__) && defined(__linux) +__attribute__ ((visibility("hidden"))) +#endif void OPENSSL_cpuid_setup(void) { struct OPENSSL_s390xcap_st cap;