aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-11-02 18:20:05 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-11-02 18:20:05 +0000
commitdfa5b43b8c4b2d4b23fe92665de4a56260ec2d78 (patch)
treeae4eb904fdbec6311cc62904a76bde4178dcd57b /crypto
parente48ce1a8bd23086a12c40d2e079682f6c9cb3945 (diff)
downloadsrc-dfa5b43b8c4b2d4b23fe92665de4a56260ec2d78.tar.gz
src-dfa5b43b8c4b2d4b23fe92665de4a56260ec2d78.zip
MFC: r316607 (andrew)
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.
Notes
Notes: svn path=/stable/11/; revision=325334
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssl/crypto/armcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/armcap.c b/crypto/openssl/crypto/armcap.c
index 356fa152871f..ff9b317b4aed 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