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
This commit is contained in:
Andrew Turner 2017-04-07 12:41:57 +00:00
parent 99e690772a
commit e7fca4bb42
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316607

View file

@ -7,6 +7,7 @@
#include "arm_arch.h"
__attribute__ ((visibility("hidden")))
unsigned int OPENSSL_armcap_P = 0;
#if __ARM_MAX_ARCH__<7