From 6bde1667bac6d474c70cdcf3f2388d32726f76b7 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 6 Nov 2017 20:33:13 +0000 Subject: [PATCH] [MinGW] Don't autoexport anything from libmsvcrt or libucrtbase 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/COFF/MinGW.cpp b/lld/COFF/MinGW.cpp index 0655dc4..504c0e9 100644 --- a/lld/COFF/MinGW.cpp +++ b/lld/COFF/MinGW.cpp @@ -69,6 +69,8 @@ AutoExporter::AutoExporter() { "libc++", "libc++abi", "libunwind", + "libmsvcrt", + "libucrtbase", }; ExcludeObjects = { "crt0.o", -- 2.7.4