• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.o
5# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
6
7# CHECK: has an STT_TLS symbol but doesn't have an SHF_TLS section
8
9--- !ELF
10FileHeader:
11  Class:           ELFCLASS64
12  Data:            ELFDATA2LSB
13  Type:            ET_REL
14  Machine:         EM_X86_64
15Sections:
16  - Name:            .text
17    Type:            SHT_PROGBITS
18    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
19    Content:         ''
20Symbols:
21  - Name:          bar
22    Type:          STT_TLS
23    Section:       .text
24    Binding:       STB_GLOBAL
25