diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp --- a/lld/MachO/Driver.cpp +++ b/lld/MachO/Driver.cpp @@ -1155,7 +1155,7 @@ for (const CachedHashStringRef &cachedName : config->exportedSymbols.literals) { if (const Symbol *sym = symtab->find(cachedName)) - if (isa(sym)) + if (isa(sym) || isa(sym)) continue; error("undefined symbol " + cachedName.val() + "\n>>> referenced from option -exported_symbol(s_list)");