diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-24 02:19:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-24 02:19:40 +0000 |
commit | 97551276c59d4521200d2a4cf312a3fa885f2507 (patch) | |
tree | 8adbf0f047adc3978a69eca8e773a7c3e709a4fa /test/MC/ELF/tls.s | |
parent | bcc3678a4ac42cd014b94061233c06f5b9c82fa9 (diff) | |
download | external_llvm-97551276c59d4521200d2a4cf312a3fa885f2507.zip external_llvm-97551276c59d4521200d2a4cf312a3fa885f2507.tar.gz external_llvm-97551276c59d4521200d2a4cf312a3fa885f2507.tar.bz2 |
If a symbol is used as tls, mark it as tls even if not declare as so. Probably
fixes PR8659.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/tls.s')
-rw-r--r-- | test/MC/ELF/tls.s | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/MC/ELF/tls.s b/test/MC/ELF/tls.s index 395c270..19e0c76 100644 --- a/test/MC/ELF/tls.s +++ b/test/MC/ELF/tls.s @@ -1,15 +1,27 @@ // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s -// Test that foobar is of type STT_TLS. +// Test that foo and foobar is of type STT_TLS. + + leaq foo@TLSGD(%rip), %rdi .section .zed,"awT",@progbits foobar: .long 43 -// CHECK: (('st_name', 0x00000001) # 'foobar' +// CHECK: (('st_name', 0x00000005) # 'foobar' // CHECK-NEXT: ('st_bind', 0x00000000) // CHECK-NEXT: ('st_type', 0x00000006) // CHECK-NEXT: ('st_other', 0x00000000) // CHECK-NEXT: ('st_shndx', 0x00000004) // CHECK-NEXT: ('st_value', 0x00000000) // CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ), + +// CHECK: (('st_name', 0x00000001) # 'foo' +// CHECK-NEXT: ('st_bind', 0x00000001) +// CHECK-NEXT: ('st_type', 0x00000006) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000000) +// CHECK-NEXT: ('st_value', 0x00000000) +// CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ), |