llvm-project/lld/test/ELF/invalid/section-index.test
George Rimar 81ffc08a8a [LLD][ELF] - Remove a binary from the inputs. NFCI.
section-index.elf was removed and the corresponding test
was replaced with a yaml2obj based test.

llvm-svn: 358889
2019-04-22 14:53:32 +00:00

17 lines
365 B
Plaintext

## If an object contains a symbol with a broken (too large) st_shndx,
## check we report it.
# RUN: yaml2obj %s -o %t1.o
# RUN: not ld.lld %t1.o -o %t 2>&1 | FileCheck %s
# CHECK: {{.*}}1.o: invalid section index: 256
!ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_386
Symbols:
- Name: foo
Index: 0x100