mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message. * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2003-01-27 Ulrich Drepper <drepper@redhat.com>
|
2003-01-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
|
||||||
|
|
||||||
|
* elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
|
||||||
|
|
||||||
* elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
|
* elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
|
||||||
wrap-around in test.
|
wrap-around in test.
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#ifndef SHARED
|
#ifndef SHARED
|
||||||
/* Giving this initialized value preallocates some surplus bytes in the
|
/* Giving this initialized value preallocates some surplus bytes in the
|
||||||
static TLS area, see __libc_setup_tls (libc-tls.c). */
|
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
|
#endif
|
||||||
|
|
||||||
extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
|
extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
|
||||||
|
@ -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) \
|
if (__builtin_expect ((sym_map)->l_tls_offset == 0, 0) \
|
||||||
&& !allocate_static_tls (sym_map)) \
|
&& !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); \
|
INTUSE(_dl_signal_error) (0, (map)->l_name, NULL, errstring); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Reference in New Issue
Block a user