1# REQUIRES: x86 2 3# RUN: llvm-mc -triple=x86_64-windows-gnu %S/Inputs/tlssup.s -filetype=obj -o %t.tlssup.o 4# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.main.o 5 6# RUN: lld-link -lldmingw -entry:main %t.main.o %t.tlssup.o -out:%t.exe 7# RUN: llvm-objdump -s %t.exe | FileCheck %s 8 9# Check that .tls$$foo is sorted after the start marker (aa) and before the 10# end marker (ff). 11 12# CHECK: Contents of section .tls: 13# CHECK: 140004000 aabbff 14 15 .text 16 .globl main 17main: 18 movl _tls_index(%rip), %eax 19 movq %gs:88, %rcx 20 movq (%rcx,%rax,8), %rax 21 movb foo@SECREL32(%rax), %al 22 ret 23 24 .section .tls$$foo,"dw" 25 .linkonce discard 26foo: 27 .byte 0xbb 28