Files
clang-p2996/lld/test/ELF/invalid/invalid-e_shnum.test
Georgii Rymar 2e10b7a39b [LLD][ELF] - Update test after yaml2obj change. NFC.
Names of YAML keys changed in rG7a587ca93200c49e47fe205ce037895c81c5a542
2020-07-15 13:00:48 +03: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
EShOff: 0
EShNum: 0x1
EShStrNdx: 0