PECOFF: Fix dummy symbol table in executable.
authorRui Ueyama <ruiu@google.com>
Thu, 12 Feb 2015 22:46:16 +0000 (22:46 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 12 Feb 2015 22:46:16 +0000 (22:46 +0000)
commitacbe51a0e30bc9f6163f0df6e303799e99f65e14
treea82ae84eaffcc7e2772b2e5fef4479a7cd7ace41
parent7548aeeb9f1b6b15b192024d88b135d5101bf739
PECOFF: Fix dummy symbol table in executable.

If the name field of a symbol table entry is all zero, it's interpreted
as it's pointing to the beginning of the string table. The first four
bytes of the string table is the size field, so dumpbin dumps that number
as an ASCIZ string.

This patch fills a dummy value to name field.

llvm-svn: 228971
lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp