aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 0e74996473..7dd18b7d97 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -34,6 +34,12 @@
#include <dl-dst.h>
+#ifdef SHARED
+/* Giving this initialized value preallocates some surplus bytes in the
+ static TLS area, see __libc_setup_tls (libc-tls.c). */
+size_t _dl_tls_static_size = 576;
+#endif
+
extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
void (*dl_main) (const ElfW(Phdr) *phdr,
ElfW(Word) phnum,