Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2017 18:20:06 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r325334 - stable/11/crypto/openssl/crypto
Message-ID:  <201711021820.vA2IK6C8076098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Nov  2 18:20:05 2017
New Revision: 325334
URL: https://svnweb.freebsd.org/changeset/base/325334

Log:
  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.

Modified:
  stable/11/crypto/openssl/crypto/armcap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/crypto/openssl/crypto/armcap.c
==============================================================================
--- stable/11/crypto/openssl/crypto/armcap.c	Thu Nov  2 18:16:01 2017	(r325333)
+++ stable/11/crypto/openssl/crypto/armcap.c	Thu Nov  2 18:20:05 2017	(r325334)
@@ -7,6 +7,7 @@
 
 #include "arm_arch.h"
 
+__attribute__ ((visibility("hidden")))
 unsigned int OPENSSL_armcap_P = 0;
 
 #if __ARM_MAX_ARCH__<7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711021820.vA2IK6C8076098>