about summary refs log tree commit diff
path: root/csu/libc-tls.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-09-05 12:24:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-09-06 11:51:52 -0700
commit0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4 (patch)
tree1559f2e2c3a92127e68715b8758b44f6632ad63e /csu/libc-tls.c
parentf5fce0629a6a75e2e5969a87b01c37e8c45c1f4d (diff)
downloadglibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.tar.gz
glibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.tar.xz
glibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.zip
Always check dtv before freeing dtv[-1]
Diffstat (limited to 'csu/libc-tls.c')
-rw-r--r--csu/libc-tls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/csu/libc-tls.c b/csu/libc-tls.c
index b00a5ccb9d..eb9c5025ff 100644
--- a/csu/libc-tls.c
+++ b/csu/libc-tls.c
@@ -65,6 +65,8 @@ size_t _dl_tls_static_size = 2048;
 size_t _dl_tls_static_used;
 /* Alignment requirement of the static TLS block.  */
 size_t _dl_tls_static_align;
+/* Initial dtv of the main thread, not allocated with normal malloc.  */
+void *_dl_initial_dtv = &static_dtv[1];
 
 /* Generation counter for the dtv.  */
 size_t _dl_tls_generation;