26 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/tls-got-entry.s -o %tso.o4// RUN: ld.lld -shared %tso.o -o %t.so5// RUN: ld.lld %t.o %t.so -o %t16// RUN: llvm-readobj -r %t1 | FileCheck %s7 8// CHECK: Relocations [9// CHECK-NEXT: Section ({{.*}}) .rela.dyn {10// CHECK-NEXT: R_X86_64_TPOFF64 tlsshared0 0x011// CHECK-NEXT: }12// CHECK-NEXT: ]13 14.globl _start15_start:16 .byte 0x6617 leaq tlsshared0@tlsgd(%rip),%rdi18 .word 0x666619 rex6420 call __tls_get_addr@plt21 .byte 0x6622 leaq tlsshared0@tlsgd(%rip),%rdi23 .word 0x666624 rex6425 call __tls_get_addr@plt26