From d301c3c02e70ee9ff50d173da7d4d9626767bc4c Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 21 Aug 2017 10:27:57 -0700
Subject: [PATCH] Always hide symbols referenced internally within libc.a
Since none of internal symbols within libc.a, PIE or non-PIE, can be
interposed, we can always hide symbols referenced internally within
libc.a.
* include/libc-symbols.h (attribute_hidden): Remove
BUILD_PIE_DEFAULT check.
---
include/libc-symbols.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -363,8 +363,7 @@ for linking")
strong_alias(real, name)
#endif
-#if defined SHARED || defined LIBC_NONSHARED \
- || (BUILD_PIE_DEFAULT && IS_IN (libc))
+#if defined SHARED || defined LIBC_NONSHARED || IS_IN (libc)
# define attribute_hidden __attribute__ ((visibility ("hidden")))
#else
# define attribute_hidden
--
2.13.5