diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -402,7 +402,7 @@ } if (name.contains("_PchSym_")) continue; - if (config->mingw && impSymbol(name)) + if (config->autoImport && impSymbol(name)) continue; undefs.insert(sym); }