25 lines · plain
1## The test file contains an STT_TLS symbol but has no TLS section.2## Check we report an error properly.3 4# RUN: yaml2obj %s -o %t.o5# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s6 7# CHECK: has an STT_TLS symbol but doesn't have a PT_TLS segment8 9--- !ELF10FileHeader: 11 Class: ELFCLASS6412 Data: ELFDATA2LSB13 Type: ET_REL14 Machine: EM_X86_6415Sections: 16 - Name: .text17 Type: SHT_PROGBITS18 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]19 Content: ''20Symbols:21 - Name: bar22 Type: STT_TLS23 Section: .text24 Binding: STB_GLOBAL25