aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-28 14:37:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-28 14:37:09 +0000
commita264f72d3fb9dec1427480fcf17ef3c746ea723a (patch)
treeeb540f5b3c9ecb9be95e408e2a69a9e36bff759f /test
parenta0a2f8734cdfc19d44201b791a969bcdda96bb70 (diff)
downloadexternal_llvm-a264f72d3fb9dec1427480fcf17ef3c746ea723a.zip
external_llvm-a264f72d3fb9dec1427480fcf17ef3c746ea723a.tar.gz
external_llvm-a264f72d3fb9dec1427480fcf17ef3c746ea723a.tar.bz2
Implement TLSLDM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ELF/relocation-386.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s
index 8a1ff6e..9fb0bef 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/test/MC/ELF/relocation-386.s
@@ -85,6 +85,12 @@
// CHECK-NEXT: ('r_type', 0x00000010)
// CHECK-NEXT: ),
+// Relocation 10 (foo@TLSLDM) is of type R_386_TLS_LDM
+// CHECK-NEXT: # Relocation 0x0000000a
+// CHECK-NEXT: (('r_offset', 0x0000003d)
+// CHECK-NEXT: ('r_sym', 0x0000000b)
+// CHECK-NEXT: ('r_type', 0x00000013)
+// CHECK-NEXT: ),
.text
bar:
leal .Lfoo@GOTOFF(%ebx), %eax
@@ -106,6 +112,7 @@ bar2:
movl foo@INDNTPOFF, %ecx
addl foo@NTPOFF(%eax), %eax
addl foo@GOTNTPOFF(%ebx), %ecx
+ leal foo@TLSLDM(%ebx), %eax
.section .rodata.str1.16,"aMS",@progbits,1
.Lfoo: