Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid / tls-symbol.s
blob3f371d406e1f2f62295df7331656ffbef3583010
1 ## The test file contains an STT_TLS symbol but has no TLS section.
2 ## Check we report an error properly.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK: has an STT_TLS symbol but doesn't have an SHF_TLS section
9 --- !ELF
10 FileHeader:
11 Class: ELFCLASS64
12 Data: ELFDATA2LSB
13 Type: ET_REL
14 Machine: EM_X86_64
15 Sections:
16 - Name: .text
17 Type: SHT_PROGBITS
18 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
19 Content: ''
20 Symbols:
21 - Name: bar
22 Type: STT_TLS
23 Section: .text
24 Binding: STB_GLOBAL