diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2004-08-23 15:30:05 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2004-08-23 15:30:05 +0000 |
| commit | bd41e9ea592293d01c50204ba2782c1e5551d9b6 (patch) | |
| tree | f027e468e40f38d553ac06f943b5fafe8a24b561 /lib/libc | |
| parent | 570be2941eccbf2ce303397c89807d792269fe93 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/tls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c index 7a3ebfe4d2f9..69489125eae1 100644 --- a/lib/libc/gen/tls.c +++ b/lib/libc/gen/tls.c @@ -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)); |
