about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-18 01:13:06 +0000
committerRoland McGrath <roland@gnu.org>2002-10-18 01:13:06 +0000
commitb9cb349fb4fcec60fe99535dbab062ffe7a7ac49 (patch)
tree10070a4ce41d889b8ec9a37efb5677f10ee7c144 /sysdeps/generic
parent1f0c4a1006d76e7115340325388b26fd50cd0cad (diff)
downloadglibc-b9cb349fb4fcec60fe99535dbab062ffe7a7ac49.tar.gz
glibc-b9cb349fb4fcec60fe99535dbab062ffe7a7ac49.tar.xz
glibc-b9cb349fb4fcec60fe99535dbab062ffe7a7ac49.zip
* aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
	Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).

	* elf/dl-support.c: Move _dl_tls_* variables to ...
	* sysdeps/generic/libc-tls.c: ... here.

	* elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
	allow IDX to be one past the current last slotinfo entry.
	(_dl_close): Pass IMAP->l_init_called for that parameter.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/libc-tls.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/generic/libc-tls.c b/sysdeps/generic/libc-tls.c
index 3fc89c15b4..df8dc2cbdc 100644
--- a/sysdeps/generic/libc-tls.c
+++ b/sysdeps/generic/libc-tls.c
@@ -22,6 +22,9 @@
 #include <tls.h>
 #include <unistd.h>
 
+#ifdef SHARED
+ #error makefile bug, this file is for static only
+#endif
 
 #ifdef USE_TLS
 extern ElfW(Phdr) *_dl_phdr;
@@ -47,6 +50,23 @@ static struct
 static struct link_map static_map;
 
 
+/* Highest dtv index currently needed.  */
+size_t _dl_tls_max_dtv_idx;
+/* Flag signalling whether there are gaps in the module ID allocation.  */
+bool _dl_tls_dtv_gaps;
+/* Information about the dtv slots.  */
+struct dtv_slotinfo_list *_dl_tls_dtv_slotinfo_list;
+/* Number of modules in the static TLS block.  */
+size_t _dl_tls_static_nelem;
+/* Size of the static TLS block.  */
+size_t _dl_tls_static_size;
+/* Alignment requirement of the static TLS block.  */
+size_t _dl_tls_static_align;
+
+/* Generation counter for the dtv.  */
+size_t _dl_tls_generation;
+
+
 /* Additional definitions needed by TLS initialization.  */
 #ifdef TLS_INIT_HELPER
 TLS_INIT_HELPER