llvm-project/lld/test/ELF/invalid/invalid-e_shnum.test
Fangrui Song 70e002b50b [ELF][test] Update test after r371185
llvm-svn: 371189
2019-09-06 09:39:48 +00:00

16 lines
376 B
Plaintext

## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though
## in this test case it holds non-zero and lld used to crash.
# RUN: yaml2obj %s -o %t
# RUN: ld.lld %t -o /dev/null
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
SHOff: 0
SHNum: 0x1
SHStrNdx: 0