Lines Matching refs:OutputSection

53   OutputSection *os = sec->getOutputSection();  in getOutputSectionVA()
80 OutputSection *LinkerScript::createOutputSection(StringRef name, in createOutputSection()
82 OutputSection *&secRef = nameToOutputSection[name]; in createOutputSection()
83 OutputSection *sec; in createOutputSection()
88 sec = make<OutputSection>(name, SHT_PROGBITS, 0); in createOutputSection()
96 OutputSection *LinkerScript::getOrCreateOutputSection(StringRef name) { in getOrCreateOutputSection()
97 OutputSection *&cmdRef = nameToOutputSection[name]; in getOrCreateOutputSection()
99 cmdRef = make<OutputSection>(name, SHT_PROGBITS, 0); in getOrCreateOutputSection()
228 for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands) in getSymbolAssignmentValues()
254 std::vector<OutputSection *> moves; in processInsertCommands()
260 return isa<OutputSection>(base) && in processInsertCommands()
261 cast<OutputSection>(base)->name == name; in processInsertCommands()
265 moves.push_back(cast<OutputSection>(*from)); in processInsertCommands()
270 auto *to = dyn_cast<OutputSection>(base); in processInsertCommands()
300 auto *sec = cast<OutputSection>(base); in declareSymbols()
525 void LinkerScript::discardSynthetic(OutputSection &outCmd) { in discardSynthetic()
542 LinkerScript::createInputSectionList(OutputSection &outCmd) { in createInputSectionList()
558 auto process = [this](OutputSection *osec) { in processSectionCommands()
603 DenseMap<StringRef, OutputSection *> map; in processSectionCommands()
605 for (OutputSection *osec : overwriteSections) in processSectionCommands()
609 if (auto *osec = dyn_cast<OutputSection>(base)) { in processSectionCommands()
610 if (OutputSection *overwrite = map.lookup(osec->name)) { in processSectionCommands()
622 for (OutputSection *osec : overwriteSections) in processSectionCommands()
632 aether = make<OutputSection>("", 0, SHF_ALLOC); in processSymbolAssignments()
646 for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands) in processSymbolAssignments()
654 static OutputSection *findByName(ArrayRef<BaseCommand *> vec, in findByName()
657 if (auto *sec = dyn_cast<OutputSection>(base)) in findByName()
663 static OutputSection *createSection(InputSectionBase *isec, in createSection()
665 OutputSection *sec = script->createOutputSection(outsecName, "<internal>"); in createSection()
670 static OutputSection *
671 addInputSec(StringMap<TinyPtrVector<OutputSection *>> &map, in addInputSec()
692 OutputSection *out = sec->getRelocatedSection()->getOutputSection(); in addInputSec()
745 TinyPtrVector<OutputSection *> &v = map[outsecName]; in addInputSec()
746 for (OutputSection *sec : v) { in addInputSec()
758 OutputSection *firstIsecOut = in addInputSec()
770 OutputSection *sec = createSection(isec, outsecName); in addInputSec()
777 StringMap<TinyPtrVector<OutputSection *>> map; in addOrphanSections()
778 std::vector<OutputSection *> v; in addOrphanSections()
788 } else if (OutputSection *sec = findByName(sectionCommands, name)) { in addOrphanSections()
791 if (OutputSection *os = addInputSec(map, s, name)) in addOrphanSections()
868 void LinkerScript::switchTo(OutputSection *sec) { in switchTo()
886 MemoryRegion *LinkerScript::findMemoryRegion(OutputSection *sec) { in findMemoryRegion()
915 static OutputSection *findFirstSection(PhdrEntry *load) { in findFirstSection()
916 for (OutputSection *sec : outputSections) in findFirstSection()
924 void LinkerScript::assignOffsets(OutputSection *sec) { in assignOffsets()
1019 static bool isDiscardable(OutputSection &sec) { in isDiscardable()
1048 static void maybePropagatePhdrs(OutputSection &sec, in maybePropagatePhdrs()
1085 auto *sec = dyn_cast<OutputSection>(cmd); in adjustSectionsBeforeSorting()
1136 if (auto *sec = dyn_cast<OutputSection>(base)) { in adjustSectionsAfterSorting()
1163 if (auto *sec = dyn_cast<OutputSection>(base)) in adjustSectionsAfterSorting()
1185 for (OutputSection *sec : outputSections) in allocateHeaders()
1259 assignOffsets(cast<OutputSection>(base)); in assignAddresses()
1288 for (OutputSection *sec : outputSections) { in createPhdrs()
1350 std::vector<size_t> LinkerScript::getPhdrIndices(OutputSection *cmd) { in getPhdrIndices()