1## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though
2## in this test case it holds non-zero and lld used to crash.
3
4# RUN: yaml2obj %s -o %t
5# RUN: ld.lld %t -o /dev/null
6
7--- !ELF
8FileHeader:
9  Class:     ELFCLASS64
10  Data:      ELFDATA2LSB
11  Type:      ET_REL
12  Machine:   EM_X86_64
13  SHOff:     0
14  SHNum:     0x1
15  SHStrNdx:  0
16