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

Declarations

tools/lld/ELF/LinkerScript.h
  314 extern LinkerScript *script;

References

tools/lld/ELF/Driver.cpp
   96   script = make<LinkerScript>();
  345     if (config->singleRoRx && !script->hasSectionsCommand)
 1536   if (script->hasSectionsCommand)
 1539   if (script->hasPhdrsCommands())
 1752   for (StringRef name : script->referencedSymbols)
 1795   script->processInsertCommands();
 1800   script->declareSymbols();
 1940   script->processSectionCommands();
 1945   script->addOrphanSections();
 1951   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/ICF.cpp
  506   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/LinkerScript.cpp
  564   OutputSection *sec = script->createOutputSection(outsecName, "<internal>");
 1019   if (!script->hasSectionsCommand || allocateHeaders)
 1071   for (auto &mri : script->memoryRegions) {
 1083   if (script->hasSectionsCommand) {
tools/lld/ELF/MapFile.cpp
  164   for (BaseCommand *base : script->sectionCommands) {
tools/lld/ELF/MarkLive.cpp
  236   for (StringRef s : script->referencedSymbols)
  260     if (isReserved(sec) || script->shouldKeep(sec)) {
tools/lld/ELF/Relocations.cpp
   68   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/ScriptParser.cpp
  261       script->sectionCommands.push_back(cmd);
  275   script->sectionCommands.push_back(cmd);
  452     script->phdrsCommands.push_back(cmd);
  463   if (script->memoryRegions.count(alias))
  465   if (!script->memoryRegions.count(name))
  467   script->memoryRegions.insert({alias, script->memoryRegions[name]});
  467   script->memoryRegions.insert({alias, script->memoryRegions[name]});
  522   script->hasSectionsCommand = true;
  551       dest = &script->insertAfterCommands[next()];
  553       dest = &script->insertBeforeCommands[next()];
  561   script->sectionCommands.insert(script->sectionCommands.end(), v.begin(),
  561   script->sectionCommands.insert(script->sectionCommands.end(), v.begin(),
  702     script->keptSections.push_back(cmd);
  724     return script->getDot();
  781       script->createOutputSection(next(), getCurrentLocation());
  792       script->createOutputSection(outSec, getCurrentLocation());
  794   size_t symbolsReferenced = script->referencedSymbols.size();
  873   if (script->referencedSymbols.size() > symbolsReferenced)
  936     e = [=] { return add(script->getSymbolValue(name, loc), e()); };
 1116   if (cmd->location.empty() && script->errorOnMissingSection)
 1152     OutputSection *sec = script->getOrCreateOutputSection(name);
 1164       return [=] { return alignTo(script->getDot(), e().getValue()); };
 1177     OutputSection *cmd = script->getOrCreateOutputSection(name);
 1194       return alignTo(script->getDot(), std::max((uint64_t)1, e().getValue()));
 1201     return [] { return script->getDot(); };
 1213     return [=] { return alignTo(script->getDot(), e().getValue()); };
 1221     if (script->memoryRegions.count(name) == 0) {
 1225     return [=] { return script->memoryRegions[name]->length; };
 1229     OutputSection *cmd = script->getOrCreateOutputSection(name);
 1248     if (script->memoryRegions.count(name) == 0) {
 1252     return [=] { return script->memoryRegions[name]->origin; };
 1264     OutputSection *cmd = script->getOrCreateOutputSection(name);
 1275     return [=] { return script->getSymbolValue(tok, location); };
 1284   script->referencedSymbols.push_back(tok);
 1285   return [=] { return script->getSymbolValue(tok, location); };
 1480     if (!script->memoryRegions.insert({tok, mr}).second)
tools/lld/ELF/SyntheticSections.cpp
 2224   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/Writer.cpp
  139          script->needsInterpSection();
  287   if (script->hasSectionsCommand)
  304   for (BaseCommand *base : script->sectionCommands)
  347       script->hasSectionsCommand && findSection(".data.rel.ro", 0);
  566   if (script->hasSectionsCommand)
  567     script->allocateHeaders(mainPart->phdrs);
  705   for (BaseCommand *base : script->sectionCommands) {
 1331     if (!script->hasSectionsCommand)
 1338     if (!script->hasSectionsCommand)
 1353     if (script->hasSectionsCommand)
 1378   for (BaseCommand *base : script->sectionCommands)
 1384   script->adjustSectionsBeforeSorting();
 1393   for (BaseCommand *base : script->sectionCommands) {
 1407   if (!script->hasSectionsCommand) {
 1411         llvm::find_if(script->sectionCommands, isSection),
 1412         llvm::find_if(llvm::reverse(script->sectionCommands), isSection).base(),
 1456   auto i = script->sectionCommands.begin();
 1457   auto e = script->sectionCommands.end();
 1492   script->adjustSectionsAfterSorting();
 1553   script->assignAddresses();
 1568         script->assignAddresses();
 1573         script->assignAddresses();
 1586     const Defined *changedSym = script->assignAddresses();
 1682     for (BaseCommand *base : script->sectionCommands)
 1742   script->processSymbolAssignments();
 1820   for (BaseCommand *base : script->sectionCommands)
 1847       part.phdrs = script->hasPhdrsCommands() ? script->createPhdrs()
 1847       part.phdrs = script->hasPhdrsCommands() ? script->createPhdrs()
 1907   if (!script->hasSectionsCommand && !config->relocatable)
 2249           return alignTo(script->getDot(), config->maxPageSize);
 2266           return alignTo(script->getDot(), config->maxPageSize) +
 2267                  alignTo(script->getDot() % config->maxPageSize,
 2272           return alignTo(script->getDot(), config->maxPageSize) +
 2273                  script->getDot() % config->maxPageSize;