about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-11 09:17:49 +0000
committerRoland McGrath <roland@gnu.org>2002-10-11 09:17:49 +0000
commitcfd8a63a1d2b2c28ea5741f76127c9347d686c2e (patch)
tree2a8151d198a15c8f7745ee6c915f7155c8232c00 /elf
parentc29defa319b4000f19f84ad008c82d3cd645ffec (diff)
downloadglibc-cfd8a63a1d2b2c28ea5741f76127c9347d686c2e.tar.gz
glibc-cfd8a63a1d2b2c28ea5741f76127c9347d686c2e.tar.xz
glibc-cfd8a63a1d2b2c28ea5741f76127c9347d686c2e.zip
2002-10-11 Roland McGrath <roland@redhat.com>
	* elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
	proper set of no-op insn prefixes.
Diffstat (limited to 'elf')
-rw-r--r--elf/tls-macros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/tls-macros.h b/elf/tls-macros.h
index 846da91080..e8ed56c996 100644
--- a/elf/tls-macros.h
+++ b/elf/tls-macros.h
@@ -122,8 +122,10 @@
 
 # define TLS_GD(x) \
   ({ int *__l, __c, __d;						      \
-     asm (".long 0x66666666\n\t"					      \
+     asm (".byte 0x66\n\t"						      \
 	  "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"); 			      \