[PATCH] Relax COFF string table check

Rui Ueyama ruiu at google.com
Tue Feb 25 16:40:31 PST 2014


I'd set 4 to StringTableSize if the actual string size field in the string
table is 0, so that everywhere except here will safely assume that the
string table with size 4 has no content.


On Sun, Feb 23, 2014 at 2:38 AM, Nico Rieck <nico.rieck at gmail.com> wrote:

> 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.
>
> -Nico
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140225/6a9b7b31/attachment.html>


More information about the llvm-commits mailing list