Blame elf/tls-macros.h

Packit 6c4009
/* Macros to support TLS testing in times of missing compiler support.  */
Packit 6c4009
Packit 6c4009
#define COMMON_INT_DEF(x) \
Packit 6c4009
  asm (".tls_common " #x ",4,4")
Packit 6c4009
/* XXX Until we get compiler support we don't need declarations.  */
Packit 6c4009
#define COMMON_INT_DECL(x)
Packit 6c4009
Packit 6c4009
/* XXX This definition will probably be machine specific, too.  */
Packit 6c4009
#define VAR_INT_DEF(x) \
Packit 6c4009
  asm (".section .tdata\n\t"						      \
Packit 6c4009
       ".globl " #x "\n"						      \
Packit 6c4009
       ".balign 4\n"							      \
Packit 6c4009
       #x ":\t.long 0\n\t"						      \
Packit 6c4009
       ".size " #x ",4\n\t"						      \
Packit 6c4009
       ".previous")
Packit 6c4009
/* XXX Until we get compiler support we don't need declarations.  */
Packit 6c4009
#define VAR_INT_DECL(x)
Packit 6c4009
Packit 6c4009
#include_next <tls-macros.h>
Packit 6c4009
Packit 6c4009
  /* XXX Each architecture must have its own asm for now.  */
Packit 6c4009
#if !defined TLS_LE || !defined TLS_IE \
Packit 6c4009
      || !defined TLS_LD || !defined TLS_GD
Packit 6c4009
# error "No support for this architecture so far."
Packit 6c4009
#endif