diff options
author | Fangrui Song <maskray@google.com> | 2021-08-18 09:15:20 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2021-08-18 09:15:20 -0700 |
commit | 710ba420fd417a4a82e0ad2e998e5f3b972cb503 (patch) | |
tree | d29323d05fb2596578e2cc017f5982d6a43afec4 /sysdeps/i386/tls-macros.h | |
parent | b37b75d269883a2c553bb7019a813094eb4e2dd1 (diff) | |
download | glibc-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/i386/tls-macros.h')
-rw-r--r-- | sysdeps/i386/tls-macros.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sysdeps/i386/tls-macros.h b/sysdeps/i386/tls-macros.h deleted file mode 100644 index 9c1303dc45..0000000000 --- a/sysdeps/i386/tls-macros.h +++ /dev/null @@ -1,47 +0,0 @@ -#define TLS_LE(x) \ - ({ int *__l; \ - asm ("movl %%gs:0,%0\n\t" \ - "subl $" #x "@tpoff,%0" \ - : "=r" (__l)); \ - __l; }) - -#define TLS_IE(x) \ - ({ int *__l, __b; \ - asm ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "movl %%gs:0,%0\n\t" \ - "subl " #x "@gottpoff(%%ebx),%0" \ - : "=r" (__l), "=&b" (__b)); \ - __l; }) - -#define TLS_LD(x) \ - ({ int *__l, __b, __c, __d; \ - asm ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "leal " #x "@tlsldm(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "leal " #x "@dtpoff(%%eax), %%eax" \ - : "=a" (__l), "=&b" (__b), "=&c" (__c), "=&d" (__d)); \ - __l; }) - -#define TLS_GD(x) \ - ({ int *__l, __b, __c, __d; \ - asm ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "leal " #x "@tlsgd(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "nop" \ - : "=a" (__l), "=&b" (__b), "=&c" (__c), "=&d" (__d)); \ - __l; }) |