diff options
author | Martell Malone <martellmalone@gmail.com> | 2017-07-18 21:26:38 +0000 |
---|---|---|
committer | Martell Malone <martellmalone@gmail.com> | 2017-07-18 21:26:38 +0000 |
commit | 1079ef8dfe867945bbced7cdc3e724d406cd2c41 (patch) | |
tree | b3158e44cbb012317a88e547e354ec35391316b8 /llvm/lib/Object/ArchiveWriter.cpp | |
parent | f6b8ac28ab582bd0850482e9bee450c7d78450d7 (diff) | |
download | bcm5719-llvm-1079ef8dfe867945bbced7cdc3e724d406cd2c41.tar.gz bcm5719-llvm-1079ef8dfe867945bbced7cdc3e724d406cd2c41.zip |
llvm: add llvm-dlltool support to the archiver
A PE COFF spec compliant import library generator.
Intended to be used with mingw-w64.
Supports:
PE COFF spec (section 8, Import Library Format)
PE COFF spec (Aux Format 3: Weak Externals)
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D29892
This reapplies rL308329, which was reverted in rL308374
llvm-svn: 308379
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
-rw-r--r-- | llvm/lib/Object/ArchiveWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp index 4034f9039dd..b052c76d1fe 100644 --- a/llvm/lib/Object/ArchiveWriter.cpp +++ b/llvm/lib/Object/ArchiveWriter.cpp @@ -318,7 +318,8 @@ writeSymbolTable(raw_fd_ostream &Out, object::Archive::Kind Kind, continue; if (!(Symflags & object::SymbolRef::SF_Global)) continue; - if (Symflags & object::SymbolRef::SF_Undefined) + if (Symflags & object::SymbolRef::SF_Undefined && + !(Symflags & object::SymbolRef::SF_Indirect)) continue; unsigned NameOffset = NameOS.tell(); |