reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lld/COFF/SymbolTable.h
  134 extern SymbolTable *symtab;

References

tools/lld/COFF/Driver.cpp
   74   symtab = make<SymbolTable>();
  156   Symbol *s = symtab->findMangle(mangle(sym));
  194     symtab->addFile(make<ArchiveFile>(mbref));
  198       symtab->addFile(make<LazyObjFile>(mbref));
  200       symtab->addFile(make<BitcodeFile>(mbref, "", 0));
  205       symtab->addFile(make<LazyObjFile>(mbref));
  207       symtab->addFile(make<ObjFile>(mbref));
  259     symtab->addFile(imp);
  274   symtab->addFile(obj);
  507   Symbol *b = symtab->addUndefined(name);
  522   Symbol *mangled = symtab->findMangle(unmangled->getName());
  529   unmangled->weakAlias = symtab->addUndefined(mangled->getName());
  881   for (Chunk *c : symtab->getChunks())
 1029   symtab->addFile(f);
 1056   symtab->forEachSymbol([&](Symbol *s) {
 1759   symtab->addSynthetic(mangle("__ImageBase"), nullptr);
 1761     symtab->addAbsolute("___safe_se_handler_table", 0);
 1762     symtab->addAbsolute("___safe_se_handler_count", 0);
 1765   symtab->addAbsolute(mangle("__guard_fids_count"), 0);
 1766   symtab->addAbsolute(mangle("__guard_fids_table"), 0);
 1767   symtab->addAbsolute(mangle("__guard_flags"), 0);
 1768   symtab->addAbsolute(mangle("__guard_iat_count"), 0);
 1769   symtab->addAbsolute(mangle("__guard_iat_table"), 0);
 1770   symtab->addAbsolute(mangle("__guard_longjmp_count"), 0);
 1771   symtab->addAbsolute(mangle("__guard_longjmp_table"), 0);
 1773   symtab->addAbsolute(mangle("__enclave_config"), 0);
 1776     symtab->addAbsolute(mangle("__RUNTIME_PSEUDO_RELOC_LIST__"), 0);
 1777     symtab->addAbsolute(mangle("__RUNTIME_PSEUDO_RELOC_LIST_END__"), 0);
 1778     symtab->addAbsolute(mangle("__CTOR_LIST__"), 0);
 1779     symtab->addAbsolute(mangle("__DTOR_LIST__"), 0);
 1805       Symbol *sym = symtab->find(from);
 1810           u->weakAlias = symtab->addUndefined(to);
 1820         symtab->addLibcall(s);
 1823     if (symtab->findUnderscore("_load_config_used"))
 1830       if (dyn_cast_or_null<LazyArchive>(symtab->find(arg->getValue())))
 1849     symtab->loadMinGWAutomaticImports();
 1858     symtab->reportUnresolvable();
 1865   symtab->addCombinedLTOObjects();
 1878   symtab->resolveRemainingUndefines();
 1924     Symbol *sym = symtab->find(name);
 1952     markLive(symtab->getChunks());
 1960     doICF(symtab->getChunks());
tools/lld/COFF/InputFiles.cpp
  106     symtab->addLazyArchive(this, sym);
  151   symtab->addFile(file);
  161         symtab->addLazyObject(this, sym.getName());
  179     symtab->addLazyObject(this, name);
  385       return symtab->addRegular(this, name, sym.getGeneric(), sc,
  394     return symtab->addUndefined(name, this, false);
  463     checkAndSetWeakAlias(symtab, this, sym, symbols[idx]);
  470   return symtab->addUndefined(name, this, sym.isWeakExternal());
  516     symtab->reportDuplicate(leader, this);
  522     symtab->reportDuplicate(leader, this);
  531       symtab->reportDuplicate(leader, this);
  540       symtab->reportDuplicate(leader, this, &newChunk, sym.getValue());
  588     return symtab->addCommon(this, getName(), sym.getValue(), sym.getGeneric(),
  602       return symtab->addAbsolute(name, sym);
  635           symtab->addComdat(this, getName(), sym.getGeneric());
  862   impSym = symtab->addImportData(impName, this);
  869     static_cast<void>(symtab->addImportData(name, this));
  875     thunkSym = symtab->addImportThunk(
  906     comdat[i] = symtab->addComdat(this, saver.save(obj->getComdatTable()[i]));
  912       sym = symtab->addUndefined(symName, this, false);
  914       sym = symtab->addCommon(this, symName, objSym.getCommonSize());
  917       sym = symtab->addUndefined(symName, this, true);
  919       Symbol *alias = symtab->addUndefined(saver.save(fallback));
  920       checkAndSetWeakAlias(symtab, this, sym, alias);
  925         sym = symtab->addRegular(this, symName);
  927         sym = symtab->addUndefined(symName, this, false);
  929       sym = symtab->addRegular(this, symName);
tools/lld/COFF/MinGW.cpp
  131   if (symtab->find(("__imp_" + sym->getName()).str()))
tools/lld/COFF/Writer.cpp
  620     createPDB(symtab, outputSections, sectionTable, buildId->buildId);
  825   for (Chunk *c : symtab->getChunks()) {
  916   if (!symtab->localImportChunks.empty()) {
  917     for (Chunk *c : symtab->localImportChunks)
 1403   if (Symbol *sym = symtab->findUnderscore("_tls_used")) {
 1415   if (Symbol *sym = symtab->findUnderscore("_load_config_used")) {
 1481       handlers.empty() || !symtab->findUnderscore("_load_config_used");
 1616   Symbol *flagSym = symtab->findUnderscore("__guard_flags");
 1672   Symbol *t = symtab->findUnderscore(tableSym);
 1673   Symbol *c = symtab->findUnderscore(countSym);
 1685   for (Chunk *c : symtab->getChunks()) {
 1699   Symbol *headSym = symtab->findUnderscore("__RUNTIME_PSEUDO_RELOC_LIST__");
 1700   Symbol *endSym = symtab->findUnderscore("__RUNTIME_PSEUDO_RELOC_LIST_END__");
 1720   Symbol *ctorListSym = symtab->findUnderscore("__CTOR_LIST__");
 1721   Symbol *dtorListSym = symtab->findUnderscore("__DTOR_LIST__");