1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr | FileCheck  %s
2
3// Test that we produce the correct relocation.
4
5        leaq    _ZL3ccc@TLSDESC(%rip), %rax
6        call    *_ZL3ccc@TLSCALL(%rax)
7        addq    %fs:0, %rax
8
9// CHECK: Section {
10// CHECK:   Index:
11// CHECK:   Name: .rela.text
12// CHECK-NEXT:   Type: SHT_RELA
13// CHECK-NEXT:   Flags [
14// CHECK-NEXT:   ]
15// CHECK-NEXT:   Address: 0x0
16// CHECK-NEXT:   Offset:
17// CHECK-NEXT:   Size:
18// CHECK-NEXT:   Link:
19// CHECK-NEXT:   Info:
20// CHECK-NEXT:   AddressAlignment: 8
21// CHECK-NEXT:   EntrySize: 24
22// CHECK-NEXT:   Relocations [
23// CHECK-NEXT:     0x3 R_X86_64_GOTPC32_TLSDESC _ZL3ccc 0xFFFFFFFFFFFFFFFC
24// CHECK-NEXT:     0x9 R_X86_64_TLSDESC_CALL _ZL3ccc 0x0
25// CHECK-NEXT:   ]
26// CHECK-NEXT: }
27