diff options
author | Roland McGrath <roland@gnu.org> | 2005-02-26 02:12:07 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-02-26 02:12:07 +0000 |
commit | a873f007cffea32297d52e8f0b19f5981a4e23b4 (patch) | |
tree | 91bf845e7c044e95cc27b433b0c5c652068dd0df /sysdeps | |
parent | 4d0ac7b9463ba779778bfdbaa84632b635866ae8 (diff) |
Updated to fedora-glibc-2_3-20050226T0141
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/libc-tls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/generic/libc-tls.c b/sysdeps/generic/libc-tls.c index b5ecc36436..29d9d1e7ea 100644 --- a/sysdeps/generic/libc-tls.c +++ b/sysdeps/generic/libc-tls.c @@ -34,8 +34,7 @@ extern ElfW(Phdr) *_dl_phdr; extern size_t _dl_phnum; -/* DTV with just one element plus overhead. */ -static dtv_t static_dtv[3]; +static dtv_t static_dtv[2 + TLS_SLOTINFO_SURPLUS]; static struct @@ -173,7 +172,7 @@ __libc_setup_tls (size_t tcbsize, size_t tcbalign) & ~(max_align - 1)); /* Initialize the dtv. [0] is the length, [1] the generation counter. */ - static_dtv[0].counter = 1; + static_dtv[0].counter = (sizeof (static_dtv) / sizeof (static_dtv[0])) - 2; // static_dtv[1].counter = 0; would be needed if not already done /* Initialize the TLS block. */ |