aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-open.c2
-rw-r--r--elf/dl-reloc.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 8e0c3c2929..aadd8f55f6 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -37,7 +37,7 @@
#ifndef 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;
+size_t _dl_tls_static_size = 2048;
#endif
extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 82e205a6f7..7d28553eba 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -200,7 +200,8 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
if (__builtin_expect ((sym_map)->l_tls_offset == 0, 0) \
&& !allocate_static_tls (sym_map)) \
{ \
- errstring = N_("shared object cannot be dlopen()ed"); \
+ errstring = N_("\
+shared object cannot be dlopen()ed: static TLS memory too small"); \
INTUSE(_dl_signal_error) (0, (map)->l_name, NULL, errstring); \
} \
} while (0)