1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| # REQUIRES: x86
# RUN: echo '.section .tbss,"awT",@nobits; .quad 0' \
# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o
# RUN: ld.lld -o %t --script %s %t.o
# RUN: llvm-readobj -S %t | FileCheck %s
SECTIONS {
. = SIZEOF_HEADERS;
.tbss : { *(.tbss) }
.foo : { bar = .; }
}
## Check .foo does not get SHF_TLS flag.
# CHECK: Section {
# CHECK: Index:
# CHECK: Name: .foo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: SHF_WRITE
# CHECK-NEXT: ]
|