28 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=x86_64-windows-gnu %S/Inputs/tlssup.s -filetype=obj -o %t.tlssup.o4# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.main.o5 6# RUN: lld-link -lldmingw -entry:main %t.main.o %t.tlssup.o -out:%t.exe7# RUN: llvm-objdump -s %t.exe | FileCheck %s8 9# Check that .tls$$foo is sorted after the start marker (aa) and before the10# end marker (ff).11 12# CHECK: Contents of section .tls:13# CHECK: 140004000 aabbff14 15 .text16 .globl main17main:18 movl _tls_index(%rip), %eax19 movq %gs:88, %rcx20 movq (%rcx,%rax,8), %rax21 movb foo@SECREL32(%rax), %al22 ret23 24 .section .tls$$foo,"dw"25 .linkonce discard26foo:27 .byte 0xbb28