about summary refs log tree commit diff
path: root/sysdeps/x86_64/tls-macros.h
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-08-18 09:15:20 -0700
committerFangrui Song <maskray@google.com>2021-08-18 09:15:20 -0700
commit710ba420fd417a4a82e0ad2e998e5f3b972cb503 (patch)
treed29323d05fb2596578e2cc017f5982d6a43afec4 /sysdeps/x86_64/tls-macros.h
parentb37b75d269883a2c553bb7019a813094eb4e2dd1 (diff)
downloadglibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.tar.gz
glibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.tar.xz
glibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.zip
Remove sysdeps/*/tls-macros.h
They provide TLS_GD/TLS_LD/TLS_IE/TLS_IE macros for TLS testing.  Now
that we have migrated to __thread and tls_model attributes, these macros
are unused and the tls-macros.h files can retire.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'sysdeps/x86_64/tls-macros.h')
-rw-r--r--sysdeps/x86_64/tls-macros.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/sysdeps/x86_64/tls-macros.h b/sysdeps/x86_64/tls-macros.h
deleted file mode 100644
index 22d2a4b592..0000000000
--- a/sysdeps/x86_64/tls-macros.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#define TLS_LE(x) \
-  ({ int *__l;								      \
-     asm ("mov %%fs:0,%0\n\t"						      \
-	  "lea " #x "@tpoff(%0), %0"					      \
-	  : "=r" (__l));						      \
-     __l; })
-
-#define TLS_IE(x) \
-  ({ int *__l;								      \
-     asm ("mov %%fs:0,%0\n\t"						      \
-	  "add " #x "@gottpoff(%%rip),%0"				      \
-	  : "=r" (__l));						      \
-     __l; })
-
-#define TLS_LD(x) \
-  ({ int *__l, __c, __d;						      \
-     asm ("leaq " #x "@tlsld(%%rip),%%rdi\n\t"				      \
-	  "call __tls_get_addr@plt\n\t"					      \
-	  "leaq " #x "@dtpoff(%%rax), %%rax"				      \
-	  : "=a" (__l), "=&c" (__c), "=&d" (__d)			      \
-	  : : "rdi", "rsi", "r8", "r9", "r10", "r11"); 			      \
-     __l; })
-
-#ifdef __ILP32__
-# define TLS_GD_PREFIX
-#else
-# define TLS_GD_PREFIX	".byte 0x66\n\t"
-#endif
-
-#define TLS_GD(x) \
-  ({ int *__l, __c, __d;						      \
-     asm (TLS_GD_PREFIX							      \
-	  "leaq " #x "@tlsgd(%%rip),%%rdi\n\t"				      \
-	  ".word 0x6666\n\t"						      \
-	  "rex64\n\t"							      \
-	  "call __tls_get_addr@plt"					      \
-	  : "=a" (__l), "=&c" (__c), "=&d" (__d)			      \
-	  : : "rdi", "rsi", "r8", "r9", "r10", "r11"); 			      \
-     __l; })