2017-10-11 16:13:40 +08:00
|
|
|
# REQUIRES: x86
|
2018-03-13 23:47:14 +08:00
|
|
|
# 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
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj -S %t | FileCheck %s
|
2017-10-11 16:13:40 +08:00
|
|
|
|
2018-03-13 23:47:14 +08:00
|
|
|
SECTIONS {
|
|
|
|
. = SIZEOF_HEADERS;
|
|
|
|
.tbss : { *(.tbss) }
|
|
|
|
.foo : { bar = .; }
|
|
|
|
}
|
|
|
|
|
2017-10-11 16:13:40 +08:00
|
|
|
## Check .foo does not get SHF_TLS flag.
|
|
|
|
# CHECK: Section {
|
|
|
|
# CHECK: Index:
|
|
|
|
# CHECK: Name: .foo
|
2019-04-23 20:38:52 +08:00
|
|
|
# CHECK-NEXT: Type: SHT_PROGBITS
|
2017-10-11 16:13:40 +08:00
|
|
|
# CHECK-NEXT: Flags [
|
|
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
|
|
# CHECK-NEXT: SHF_WRITE
|
|
|
|
# CHECK-NEXT: ]
|