]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/dl-minimal-malloc.c
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / elf / dl-minimal-malloc.c
index 939b5271ca609171332fd147e63fa221cc0cc053..7cca54208d0779fbcae8814f51a6e1ba59937db5 100644 (file)
@@ -1,6 +1,6 @@
 /* Minimal malloc implementation for dynamic linker and static
    initialization.
-   Copyright (C) 1995-2021 Free Software Foundation, Inc.
+   Copyright (C) 1995-2022 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    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.
+    Note: string.h may have ifuncs which cannot be hidden on i686.  */
+#if BUILD_PIE_DEFAULT
+# pragma GCC visibility push(hidden)
+#endif
 #include <assert.h>
 #include <string.h>
 #include <ldsodefs.h>