llvm/test/tools/llvm-readobj/coff-zero-string-table.test
Nico Rieck 0a91f48308 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
2014-02-26 19:51:44 +00:00

9 lines
248 B
Plaintext

Ensure that we can read COFF objects with a string table size of 0 (instead
of 4) for empty string tables.
RUN: llvm-readobj -t %p/Inputs/zero-string-table.obj.coff-i386 | FileCheck %s
CHECK: Symbols [
CHECK: Symbol {
CHECK: Name: $R000000