16 lines · plain
1# REQUIRES: x862# RUN: echo '.section .tbss,"awT",@nobits; .quad 0' \3# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o4# RUN: ld.lld -o %t --script %s %t.o5# RUN: llvm-readelf -S %t | FileCheck %s6 7## Check .foo does not get SHF_TLS flag.8# CHECK: .tbss NOBITS [[#%x,]] [[#%x,]] [[#%x,]] 00 WAT9# CHECK-NEXT: .foo PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 00 WA10 11SECTIONS {12 . = SIZEOF_HEADERS;13 .tbss : { *(.tbss) }14 .foo : { bar = .; }15}16