Lines Matching refs:osec

137   if (secRef && secRef->osec.location.empty()) {  in createOutputSection()
145 sec->osec.location = std::string(location); in createOutputSection()
282 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in getSymbolAssignmentValues()
315 cast<OutputDesc>(subCmd)->osec.name == name; in processInsertCommands()
326 return to != nullptr && to->osec.name == cmd.where; in processInsertCommands()
355 const OutputSection &sec = cast<OutputDesc>(cmd)->osec; in declareSymbols()
603 auto process = [this](OutputSection *osec) { in processSectionCommands() argument
604 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
608 if (osec->name == "/DISCARD/") { in processSectionCommands()
611 discardSynthetic(*osec); in processSectionCommands()
612 osec->commands.clear(); in processSectionCommands()
623 if (!matchConstraints(v, osec->constraint)) { in processSectionCommands()
626 osec->commands.clear(); in processSectionCommands()
633 if (osec->subalignExpr) { in processSectionCommands()
634 uint32_t subalign = osec->subalignExpr().getValue(); in processSectionCommands()
642 osec->partition = 1; in processSectionCommands()
651 OutputSection *osec = &osd->osec; in processSectionCommands() local
652 if (process(osec) && in processSectionCommands()
653 !map.try_emplace(CachedHashStringRef(osec->name), osd).second) in processSectionCommands()
654 warn("OVERWRITE_SECTIONS specifies duplicate " + osec->name); in processSectionCommands()
658 OutputSection *osec = &osd->osec; in processSectionCommands() local
659 if (OutputDesc *overwrite = map.lookup(CachedHashStringRef(osec->name))) { in processSectionCommands()
660 log(overwrite->osec.location + " overwrites " + osec->name); in processSectionCommands()
661 overwrite->osec.sectionIndex = i++; in processSectionCommands()
663 } else if (process(osec)) { in processSectionCommands()
664 osec->sectionIndex = i++; in processSectionCommands()
672 if (osd->osec.partition == 1 && osd->osec.sectionIndex == UINT32_MAX) in processSectionCommands()
695 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in processSymbolAssignments()
707 if (osd->osec.name == name) in findByName()
708 return &osd->osec; in findByName()
714 osd->osec.recordSection(isec); in createSection()
747 out->relocationSection = &osd->osec; in addInputSec()
818 v.push_back(&osd->osec); in addInputSec()
1144 auto *sec = &cast<OutputDesc>(cmd)->osec; in adjustOutputSections()
1197 OutputSection *sec = &osd->osec; in adjustSectionsAfterSorting()
1225 maybePropagatePhdrs(osd->osec, defPhdrs); in adjustSectionsAfterSorting()
1320 assignOffsets(&cast<OutputDesc>(cmd)->osec); in assignAddresses()