• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## If an object contains a symbol with a broken (too large) st_shndx,
2## check we report it.
3
4# RUN: yaml2obj %s -o %t1.o
5# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s
6# CHECK: {{.*}}1.o: invalid section index: 256
7
8!ELF
9FileHeader:
10  Class:    ELFCLASS32
11  Data:     ELFDATA2LSB
12  Type:     ET_REL
13  Machine:  EM_386
14Symbols:
15  - Name:   foo
16    Index:  0x100
17