s390x: Hide internal cpuid symbol and function
authorJuergen Christ <jchrist@linux.ibm.com>
Wed, 23 Mar 2022 12:26:13 +0000 (13:26 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 25 Mar 2022 13:18:56 +0000 (14:18 +0100)
commit37816ef5757e458be9648481e56bf698ee3bfbb1
treeefc7dfd70c28ed74d4875897db5b4d218de79c94
parentbd28a23eb120b4fdfd45d18a1f05cd7366ed8058
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)
crypto/s390x_arch.h
crypto/s390xcap.c