diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2004-08-18 10:18:58 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2004-08-18 10:18:58 +0000 |
| commit | 0e7e4e5fd61866d54fbfc139b775d4806360db4b (patch) | |
| tree | 461a1f0e7415d3f35262d245cc6ee86e61473112 /lib/libc | |
| parent | 4233992afac2c6c461495de7a8fd91ff0e54313d (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/tls.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c index 59e44b7060d7..7a3ebfe4d2f9 100644 --- a/lib/libc/gen/tls.c +++ b/lib/libc/gen/tls.c @@ -239,6 +239,7 @@ _init_tls() Elf_Phdr *phdr; size_t phent, phnum; int i; + void *tls; sp = (Elf_Addr *) environ; while (*sp++ != 0) @@ -280,13 +281,9 @@ _init_tls() } } - if (tls_static_space > 0) { - void* tls; + tls = _rtld_allocate_tls(NULL, 2*sizeof(Elf_Addr), + sizeof(Elf_Addr)); - tls = _rtld_allocate_tls(NULL, 2*sizeof(Elf_Addr), - sizeof(Elf_Addr)); - - _set_tp(tls); - } + _set_tp(tls); #endif } |
