Make sure we allocate at least enough space for the TCB for variant I TLS.

MFC after: 3 days
This commit is contained in:
Doug Rabson 2004-08-23 15:30:05 +00:00
parent 570be2941e
commit bd41e9ea59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134212

View File

@ -109,6 +109,8 @@ _rtld_allocate_tls(void *oldtls, size_t tcbsize, size_t tcbalign)
Elf_Addr *dtv;
size = tls_static_space;
if (size < tcbsize)
size = tcbsize;
tls = malloc(size);
dtv = malloc(3 * sizeof(Elf_Addr));