[COFF] Always include the size of the string table size field
authorMartin Storsjo <martin@martin.st>
Wed, 15 Nov 2017 08:18:25 +0000 (08:18 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 15 Nov 2017 08:18:25 +0000 (08:18 +0000)
commit61716878aec0dd615ce88f2f8283292abd01e133
tree6de37258855d6ae066a34f765dcde969fb7c6471
parentb190fd2bb46c69f282fedef29de9c090513f016e
[COFF] Always include the size of the string table size field

Even if we don't actually write any string table contents, the
4 byte size for the string table will always be written. Make
sure we accommodate for this in the file size. Since this size
is aligned up, this would seldom be an issue in practice.

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

llvm-svn: 318284
lld/COFF/Writer.cpp
lld/test/COFF/strtab-size.s [new file with mode: 0644]