diff options
author | Martin Storsjo <martin@martin.st> | 2017-09-13 19:29:39 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2017-09-13 19:29:39 +0000 |
commit | 3483dcf9b3a936b7b0bc3345623e025473ea9027 (patch) | |
tree | 6aadee91222aecbd9a3e7beb5b8d4c36a718d2fd /lld/MinGW | |
parent | 3e5e788476828dfd6ebc81f55f9d36cddba63cad (diff) |
[MinGW] Support dllexport on i386
In MinGW configurations (GCC, or clang with a *-windows-gnu target),
the -export directives in the object file contains the undecorated
symbol name, while it is decorated in MSVC configurations. (On the
command line, link.exe takes an undecorated symbol name for the
-export argument though.)
Differential Revision: https://reviews.llvm.org/D37772
Diffstat (limited to 'lld/MinGW')
-rw-r--r-- | lld/MinGW/Driver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index d0574b8f6ae..41b39b9011a 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -120,6 +120,7 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) { auto Add = [&](const Twine &S) { LinkArgs.push_back(S.str()); }; Add("lld-link"); + Add("-lldmingw"); if (auto *A = Args.getLastArg(OPT_entry)) { StringRef S = A->getValue(); |