]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/symbol-only-flags.s
Vendor import of lld trunk r321530:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / symbol-only-flags.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; \
4 # RUN:         .tbss : { *(.tbss) }         \
5 # RUN:         .foo : { bar = .; } }" > %t.script
6 # RUN: ld.lld -o %t --script %t.script %t.o
7 # RUN: llvm-readobj -s %t | FileCheck %s
8
9 ## Check .foo does not get SHF_TLS flag.
10 # CHECK:     Section {
11 # CHECK:       Index:
12 # CHECK:       Name: .foo
13 # CHECK-NEXT:  Type: SHT_NOBITS
14 # CHECK-NEXT:  Flags [
15 # CHECK-NEXT:    SHF_ALLOC
16 # CHECK-NEXT:    SHF_WRITE
17 # CHECK-NEXT:  ]
18
19 .section .tbss,"awT",@nobits
20 .quad 0