llvm-project/lld/test/ELF/linkerscript/symbol-only-flags.test

22 lines
542 B
Plaintext

# 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: ]