1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s 2 3// Test that all symbols are of type STT_TLS. 4 5 leaq foo1@TLSGD(%rip), %rdi 6 leaq foo2@GOTTPOFF(%rip), %rdi 7 leaq foo3@TLSLD(%rip), %rdi 8 9 .section .zed,"awT",@progbits 10foobar: 11 .long 43 12 13// CHECK: (('st_name', 0x00000010) # 'foobar' 14// CHECK-NEXT: ('st_bind', 0x0) 15// CHECK-NEXT: ('st_type', 0x6) 16// CHECK-NEXT: ('st_other', 0x00) 17// CHECK-NEXT: ('st_shndx', 0x0005) 18// CHECK-NEXT: ('st_value', 0x0000000000000000) 19// CHECK-NEXT: ('st_size', 0x0000000000000000) 20// CHECK-NEXT: ), 21 22// CHECK: # Symbol 7 23// CHECK-NEXT: (('st_name', 0x00000001) # 'foo1' 24// CHECK-NEXT: ('st_bind', 0x1) 25// CHECK-NEXT: ('st_type', 0x6) 26// CHECK-NEXT: ('st_other', 0x00) 27// CHECK-NEXT: ('st_shndx', 0x0000) 28// CHECK-NEXT: ('st_value', 0x0000000000000000) 29// CHECK-NEXT: ('st_size', 0x0000000000000000) 30// CHECK-NEXT: ), 31// CHECK-NEXT: # Symbol 8 32// CHECK-NEXT: (('st_name', 0x00000006) # 'foo2' 33// CHECK-NEXT: ('st_bind', 0x1) 34// CHECK-NEXT: ('st_type', 0x6) 35// CHECK-NEXT: ('st_other', 0x00) 36// CHECK-NEXT: ('st_shndx', 0x0000) 37// CHECK-NEXT: ('st_value', 0x0000000000000000) 38// CHECK-NEXT: ('st_size', 0x0000000000000000) 39// CHECK-NEXT: ), 40// CHECK-NEXT: # Symbol 9 41// CHECK-NEXT: (('st_name', 0x0000000b) # 'foo3' 42// CHECK-NEXT: ('st_bind', 0x1) 43// CHECK-NEXT: ('st_type', 0x6) 44// CHECK-NEXT: ('st_other', 0x00) 45// CHECK-NEXT: ('st_shndx', 0x0000) 46// CHECK-NEXT: ('st_value', 0x0000000000000000) 47// CHECK-NEXT: ('st_size', 0x0000000000000000) 48// CHECK-NEXT: ), 49