Object, COFF: Tighten the object file parser
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 17 Nov 2014 11:17:17 +0000 (11:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 17 Nov 2014 11:17:17 +0000 (11:17 +0000)
commit236b0ca79055779c4d024d66dcd0cbc44265df7f
tree22602146bb0ce39a2ae4d0f4b901c48952cca9c0
parentd29db9b949034de5ee71a445b9aa8cbe20b62f07
Object, COFF: Tighten the object file parser

We were a little lax in a few areas:
- We pretended that import libraries were like any old COFF file, they
  are not.  In fact, they aren't really COFF files at all, we should
  probably grow some specialized functionality to handle them smarter.
- Our symbol iterators were more than happy to attempt to go past the
  end of the symbol table if you had a symbol with a bad list of
  auxiliary symbols.

llvm-svn: 222124
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/tools/llvm-readobj/file-headers.test
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp