23 lines · plain
1# REQUIRES: x862 3## Allow local-dynamic R_X86_64_DTPOFF32 and R_X86_64_DTPOFF64 to preemptable symbols.4 5# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o6# RUN: ld.lld %t.o -shared -o %t.so7# RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck %s8 9# CHECK: leaq (%rax), %rax10# CHECK-NEXT: movabsq 0, %rax11 12## i is STB_GLOBAL and preemptable.13 leaq i@TLSLD(%rip), %rdi14 callq __tls_get_addr@PLT15 leaq i@DTPOFF(%rax), %rax # R_X86_64_DTPOFF3216 movabsq i@DTPOFF, %rax # R_X86_64_DTPOFF6417 18.section .tbss,"awT",@nobits19.globl i20i:21 .long 022 .size i, 423