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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Here's a testcase for this issue. In practice it's clearly pathological, but still - with this testcase, LLD would earlier output a broken file, as detected by both llvm-readobj and dumpbin.exe. Will commit in a while since it's already approved.