about summary refs log tree commit diff
path: root/sysdeps/x86_64/dl-tls.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-04-11 03:43:01 +0100
committerPetr Baudis <pasky@ucw.cz>2011-05-27 00:34:07 +0200
commitfea332e16416691310088b5c0e6797694c88352b (patch)
tree23bfe8977921ff52ed874beb4e74e5dba2587262 /sysdeps/x86_64/dl-tls.h
parent4e43f00fc3df9757f86bc82292e6d4ca7ccd701d (diff)
downloadglibc-fea332e16416691310088b5c0e6797694c88352b.tar.gz
glibc-fea332e16416691310088b5c0e6797694c88352b.tar.xz
glibc-fea332e16416691310088b5c0e6797694c88352b.zip
Fix memory leak in TLS of loaded objects.
(cherry picked from commit e6c61494125126d2ba77e5d99f83887a2ed49783)
Diffstat (limited to 'sysdeps/x86_64/dl-tls.h')
-rw-r--r--sysdeps/x86_64/dl-tls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-tls.h b/sysdeps/x86_64/dl-tls.h
index 9b389edb4a..c382cd8482 100644
--- a/sysdeps/x86_64/dl-tls.h
+++ b/sysdeps/x86_64/dl-tls.h
@@ -1,5 +1,5 @@
 /* Thread-local storage handling in the ELF dynamic linker.  x86-64 version.
-   Copyright (C) 2002, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,3 +27,6 @@ typedef struct dl_tls_index
 
 
 extern void *__tls_get_addr (tls_index *ti);
+
+/* Value used for dtv entries for which the allocation is delayed.  */
+#define TLS_DTV_UNALLOCATED	((void *) -1l)