Index: lld/COFF/SymbolTable.cpp =================================================================== --- lld/COFF/SymbolTable.cpp +++ 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); }