aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-03-17 00:35:10 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-03-17 00:35:10 +0000
commitd02c8b6cc1d07bfe37fc055eefdac21b1c9303cb (patch)
treea482f91a8c36747de6565f9c5fe8bc18593f49a5 /test/MC/ELF
parent2254227791ea267426b9ac674fc6d87decb65bc1 (diff)
downloadexternal_llvm-d02c8b6cc1d07bfe37fc055eefdac21b1c9303cb.zip
external_llvm-d02c8b6cc1d07bfe37fc055eefdac21b1c9303cb.tar.gz
external_llvm-d02c8b6cc1d07bfe37fc055eefdac21b1c9303cb.tar.bz2
Fix handling of @IDNTPOFF relocations, they need to get STT_TLS.
While here, add VK_ARM_TPOFF and VK_ARM_GOTTPOFF, too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r--test/MC/ELF/tls-i386.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ELF/tls-i386.s b/test/MC/ELF/tls-i386.s
index 459d4cc..c754121 100644
--- a/test/MC/ELF/tls-i386.s
+++ b/test/MC/ELF/tls-i386.s
@@ -8,6 +8,7 @@
movl foo4@TLSLDM(%eax), %eax
movl foo5@TPOFF(%eax), %eax
movl foo6@DTPOFF(%eax), %eax
+ movl foo7@INDNTPOFF, %eax
// CHECK: (('st_name', 0x00000001) # 'foo1'
// CHECK-NEXT: ('st_value', 0x00000000)
@@ -62,3 +63,12 @@
// CHECK-NEXT: ('st_other', 0x00000000)
// CHECK-NEXT: ('st_shndx', 0x00000000)
// CHECK-NEXT: ),
+// CHECK-NEXT: # Symbol 0x0000000b
+// CHECK-NEXT: (('st_name', 0x0000001f) # 'foo7'
+// CHECK-NEXT: ('st_value', 0x00000000)
+// CHECK-NEXT: ('st_size', 0x00000000)
+// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_type', 0x00000006)
+// CHECK-NEXT: ('st_other', 0x00000000)
+// CHECK-NEXT: ('st_shndx', 0x00000000)
+// CHECK-NEXT: ),