From 0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 5 Sep 2012 12:24:37 -0700 Subject: Always check dtv before freeing dtv[-1] --- csu/libc-tls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'csu') 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; -- cgit v1.2.3