[MinGW] Don't autoexport anything from libmsvcrt or libucrtbase
authorMartin Storsjo <martin@martin.st>
Mon, 6 Nov 2017 20:33:13 +0000 (20:33 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 6 Nov 2017 20:33:13 +0000 (20:33 +0000)
These libraries contain a number of object files with compat wrappers,
in addition to the normal import library entries.

Differential Revision: https://reviews.llvm.org/D39684

llvm-svn: 317505

lld/COFF/MinGW.cpp

index 0655dc4..504c0e9 100644 (file)
@@ -69,6 +69,8 @@ AutoExporter::AutoExporter() {
       "libc++",
       "libc++abi",
       "libunwind",
+      "libmsvcrt",
+      "libucrtbase",
   };
   ExcludeObjects = {
       "crt0.o",