[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / x86-64-tls-ld-preemptable.s
blob74611a965207f4c7a59caf3754e44cff41d1b50b
1 # REQUIRES: x86
3 ## Allow local-dynamic R_X86_64_DTPOFF32 and R_X86_64_DTPOFF64 to preemptable symbols.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
6 # RUN: ld.lld %t.o -shared -o %t.so
7 # RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck %s
9 # CHECK: leaq (%rax), %rax
10 # CHECK-NEXT: movabsq 0, %rax
12 ## i is STB_GLOBAL and preemptable.
13 leaq i@TLSLD(%rip), %rdi
14 callq __tls_get_addr@PLT
15 leaq i@DTPOFF(%rax), %rax # R_X86_64_DTPOFF32
16 movabsq i@DTPOFF, %rax # R_X86_64_DTPOFF64
18 .section .tbss,"awT",@nobits
19 .globl i
21 .long 0
22 .size i, 4