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)
commita18e46cbc92cde1b5eaa8eea83df6d5821d22680
tree3177bb2a62031a6a525615ab4bec085bfa81bd4e
parentd9d2703b712b121eaee4c0ada57ee989812fe8f1
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222124 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/tools/llvm-readobj/file-headers.test
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-readobj/COFFDumper.cpp