Relax COFF string table check
authorNico Rieck <nico.rieck@gmail.com>
Wed, 26 Feb 2014 19:51:44 +0000 (19:51 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Wed, 26 Feb 2014 19:51:44 +0000 (19:51 +0000)
commit0a91f4830848ca16bf4b0569e45e23d7e8043368
tree073d19ffcc7009dfd364d970f910395909cf646f
parent5732fbd6e4cd5d6e20f3bbded6549fa5c592562a
Relax COFF string table check

COFF object files with 0 as string table size are currently rejected. This
prevents us from reading object files written by tools like cvtres that
violate the PECOFF spec and write 0 instead of 4 for the size of an empty
string table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202292 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/COFFObjectFile.cpp
test/tools/llvm-readobj/Inputs/zero-string-table.obj.coff-i386 [new file with mode: 0644]
test/tools/llvm-readobj/coff-zero-string-table.test [new file with mode: 0644]