2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-readobj -r %t.so | FileCheck %s --check-prefix=RELA
6 ## Both TLSDESC and DTPMOD64/DTPOFF64 should be present.
8 # RELA-NEXT: 0x[[#%X,ADDR:]] R_X86_64_TLSDESC a 0x0
9 # RELA-NEXT: 0x[[#ADDR+16]] R_X86_64_DTPMOD64 a 0x0
10 # RELA-NEXT: 0x[[#ADDR+24]] R_X86_64_DTPOFF64 a 0x0
13 leaq
a@tlsdesc
(%rip
), %rax
18 leaq
a@tlsgd
(%rip
), %rdi
21 call __tls_get_addr@PLT