1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/tls-got-entry.s -o %tso.o 4// RUN: ld.lld -shared %tso.o -o %t.so 5// RUN: ld.lld %t.o %t.so -o %t1 6// RUN: llvm-readobj -r %t1 | FileCheck %s 7 8// CHECK: Relocations [ 9// CHECK-NEXT: Section ({{.*}}) .rela.dyn { 10// CHECK-NEXT: R_X86_64_TPOFF64 tlsshared0 0x0 11// CHECK-NEXT: } 12// CHECK-NEXT: ] 13 14.globl _start 15_start: 16 .byte 0x66 17 leaq tlsshared0@tlsgd(%rip),%rdi 18 .word 0x6666 19 rex64 20 call __tls_get_addr@plt 21 .byte 0x66 22 leaq tlsshared0@tlsgd(%rip),%rdi 23 .word 0x6666 24 rex64 25 call __tls_get_addr@plt 26