From e7fca4bb4242e770a77bc2d85a7c4fa56b6267bf Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Fri, 7 Apr 2017 12:41:57 +0000 Subject: [PATCH] Fix linking with lld by marking OPENSSL_armcap_P as hidden. Linking with lld fails as it contains a relative address, however the data this address is for may be relocated from the shared object to the main executable. Fix this by adding the hidden attribute. This stops moving this value to the main executable. It seems this is implicit upstream as it uses a version script. Approved by: jkim Sponsored by: DARPA, AFRL --- crypto/openssl/crypto/armcap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/openssl/crypto/armcap.c b/crypto/openssl/crypto/armcap.c index 356fa152871..ff9b317b4ae 100644 --- a/crypto/openssl/crypto/armcap.c +++ b/crypto/openssl/crypto/armcap.c @@ -7,6 +7,7 @@ #include "arm_arch.h" +__attribute__ ((visibility("hidden"))) unsigned int OPENSSL_armcap_P = 0; #if __ARM_MAX_ARCH__<7