Object: Teach llvm-ar to create symbol table for COFF short import files.
authorRui Ueyama <ruiu@google.com>
Fri, 28 Aug 2015 05:47:46 +0000 (05:47 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 28 Aug 2015 05:47:46 +0000 (05:47 +0000)
commite8402a23ca2f78f2564e8aba54a2eec00519dab9
tree9c6a9cd98d4e1960ed114d6bf99804364a03eacc
parentd2d41f20f78ef00e58d53b77177b7c173ec873d7
Object: Teach llvm-ar to create symbol table for COFF short import files.

COFF short import files are special kind of files that contains only
DLL-exported symbol names. That's different from object files because
it has no data except symbol names.

This change implements a SymbolicFile interface for the short import
files so that symbol names can be accessed through that interface.
llvm-ar is now able to read the file and create symbol table entries
for short import files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/SymbolicFile.cpp
test/Object/Inputs/coff-short-import-code [new file with mode: 0644]
test/Object/Inputs/coff-short-import-data [new file with mode: 0644]
test/Object/archive-symtab.test