about summary refs log tree commit diff
path: root/sysdeps/mips
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-06-20 14:31:40 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-06-20 14:31:40 +0200
commitaca1daef298b43bd7b1987b31f5aabcf6c2f6021 (patch)
tree67cdaaf7a65f56676733a0459a2924b5b474d547 /sysdeps/mips
parent92e1ab0eb58c57d5843fa982ff6c24f551f2f634 (diff)
downloadglibc-aca1daef298b43bd7b1987b31f5aabcf6c2f6021.tar.gz
glibc-aca1daef298b43bd7b1987b31f5aabcf6c2f6021.tar.xz
glibc-aca1daef298b43bd7b1987b31f5aabcf6c2f6021.zip
elf: Consolidate machine-agnostic DTV definitions in <dl-dtv.h>
Identical definitions of dtv_t and TLS_DTV_UNALLOCATED were
repeated for all architectures using DTVs.
Diffstat (limited to 'sysdeps/mips')
-rw-r--r--sysdeps/mips/dl-tls.h3
-rw-r--r--sysdeps/mips/nptl/tls.h13
2 files changed, 2 insertions, 14 deletions
diff --git a/sysdeps/mips/dl-tls.h b/sysdeps/mips/dl-tls.h
index 4d084d6191..1c5a83f8a4 100644
--- a/sysdeps/mips/dl-tls.h
+++ b/sysdeps/mips/dl-tls.h
@@ -43,6 +43,3 @@ extern void *__tls_get_addr (tls_index *ti);
 
 # define GET_ADDR_OFFSET	(ti->ti_offset + TLS_DTV_OFFSET)
 # define __TLS_GET_ADDR(__ti)	(__tls_get_addr (__ti) - TLS_DTV_OFFSET)
-
-/* Value used for dtv entries for which the allocation is delayed.  */
-#define TLS_DTV_UNALLOCATED	((void *) -1l)
diff --git a/sysdeps/mips/nptl/tls.h b/sysdeps/mips/nptl/tls.h
index 10ca878292..f5f4891bd8 100644
--- a/sysdeps/mips/nptl/tls.h
+++ b/sysdeps/mips/nptl/tls.h
@@ -25,20 +25,11 @@
 # include <stdbool.h>
 # include <stddef.h>
 # include <stdint.h>
+# include <dl-dtv.h>
+
 /* Get system call information.  */
 # include <sysdep.h>
 
-/* Type for the dtv.  */
-typedef union dtv
-{
-  size_t counter;
-  struct
-  {
-    void *val;
-    bool is_static;
-  } pointer;
-} dtv_t;
-
 #ifdef __mips16
 /* MIPS16 uses GCC builtin to access the TP.  */
 # define READ_THREAD_POINTER() (__builtin_thread_pointer ())