Accept sh_entsize = 0.
authorRui Ueyama <ruiu@google.com>
Wed, 21 Sep 2016 03:22:18 +0000 (03:22 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 21 Sep 2016 03:22:18 +0000 (03:22 +0000)
commitc75ef85e84a9437695f7b8a5778a8e3fc6ca746e
tree0988a71516cbfd45809105a528b24745fb5154f7
parente3cef93727147603667ec33feba64f6de7955818
Accept sh_entsize = 0.

This surfaced again with Rust. As per bug 30435, rustc creates a
mergeable section with a sh_entsize zero. It bit us before, too.
I think we should relax the input check rather than being too picky.

Differential Revision: https://reviews.llvm.org/D24789

llvm-svn: 282049
lld/ELF/InputFiles.cpp
lld/test/ELF/invalid-elf.test
lld/test/ELF/merge-invalid-size.s