diff --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp --- a/lld/MachO/InputFiles.cpp +++ b/lld/MachO/InputFiles.cpp @@ -581,6 +581,12 @@ symbols.resize(nList.size()); for (uint32_t i = 0; i < nList.size(); ++i) { const NList &sym = nList[i]; + + // Ignore debug symbols for now. + // FIXME: may need special handling. + if (sym.n_type & N_STAB) + continue; + StringRef name = strtab + sym.n_strx; if ((sym.n_type & N_TYPE) == N_SECT) { SubsectionMap &subsecMap = subsections[sym.n_sect - 1];