1// REQUIRES: x86 2// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux 3// RUN: ld.lld %t.o -o %t.so -shared 4// RUN: llvm-readobj -r -S %t.so | FileCheck %s 5 6// CHECK: Relocations [ 7// CHECK-NEXT: Section ({{.*}}) .rela.dyn { 8// CHECK-NEXT: R_X86_64_DTPMOD64 - 0x0 9// CHECK-NEXT: R_X86_64_DTPMOD64 - 0x0 10// CHECK-NEXT: } 11// CHECK-NEXT: Section ({{.*}}) .rela.plt { 12// CHECK-NEXT: R_X86_64_JUMP_SLOT __tls_get_addr 0x0 13// CHECK-NEXT: } 14// CHECK-NEXT: ] 15 16 data16 17 leaq bar@TLSGD(%rip), %rdi 18 data16 19 data16 20 rex64 21 callq __tls_get_addr@PLT 22 23 leaq bar@TLSLD(%rip), %rdi 24 callq __tls_get_addr@PLT 25 leaq bar@DTPOFF(%rax), %rax 26 27 .section .tdata,"awT",@progbits 28bar: 29 .long 42 30