mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 04:01:10 +00:00
elf: hidden visibility for __minimal_malloc functions
Sinceb05fae4d8e
, __minimal malloc code is used during static startup before PIE self-relocation (_dl_relocate_static_pie). So it requires the same fix done for other objects by47618209d0
. Checked on aarch64, x86_64, and i686 with and without static-pie.
This commit is contained in:
parent
1f67d8286b
commit
d8c2e8e043
@ -17,6 +17,11 @@
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user