about summary refs log tree commit diff
path: root/misc/sbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sbrk.c')
-rw-r--r--misc/sbrk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/sbrk.c b/misc/sbrk.c
index 99b3fb517e..95800b32aa 100644
--- a/misc/sbrk.c
+++ b/misc/sbrk.c
@@ -15,6 +15,10 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+/* Mark symbols hidden in static PIE for early self relocation to work.  */
+#if BUILD_PIE_DEFAULT
+# pragma GCC visibility push(hidden)
+#endif
 #include <errno.h>
 #include <libc-internal.h>
 #include <stdbool.h>