2002-09-30 Roland McGrath <roland@redhat.com>
authorroland <roland>
Mon, 30 Sep 2002 10:26:34 +0000 (10:26 +0000)
committerroland <roland>
Mon, 30 Sep 2002 10:26:34 +0000 (10:26 +0000)
* elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.

elf/tls-macros.h

index 2e3635d..6497903 100644 (file)
 # define TLS_LD(x) \
   ({ int *__l, __c, __d;                                                     \
      asm ("leaq " #x "@tlsld(%%rip),%%rdi\n\t"                               \
-         "callq __tls_get_addr@plt\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");                        \
   ({ int *__l, __c, __d;                                                     \
      asm (".long 0x66666666\n\t"                                             \
          "leaq " #x "@tlsgd(%%rip),%%rdi\n\t"                                \
-         "callq __tls_get_addr@plt"                                          \
+         "call __tls_get_addr@plt"                                           \
          : "=a" (__l), "=&c" (__c), "=&d" (__d)                              \
          : : "rdi", "rsi", "r8", "r9", "r10", "r11");                        \
      __l; })