repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lld
/
test
/
ELF
/
invalid
/
invalid-e_shnum.test
blob
4e622ac9bece14183ab9d673af538a3c6a90e22a
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
8
FileHeader:
9
Class: ELFCLASS64
10
Data: ELFDATA2LSB
11
Type: ET_REL
12
Machine: EM_X86_64
13
EShOff: 0
14
EShNum: 0x1
15
EShStrNdx: 0