Lines Matching refs:osec

136   if (secRef && secRef->osec.location.empty()) {  in createOutputSection()
144 sec->osec.location = std::string(location); in createOutputSection()
287 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in getSymbolAssignmentValues()
320 cast<OutputDesc>(subCmd)->osec.name == name; in processInsertCommands()
331 return to != nullptr && to->osec.name == cmd.where; in processInsertCommands()
360 const OutputSection &sec = cast<OutputDesc>(cmd)->osec; in declareSymbols()
610 auto process = [this](OutputSection *osec) { in processSectionCommands() argument
611 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
615 if (osec->name == "/DISCARD/") { in processSectionCommands()
618 discardSynthetic(*osec); in processSectionCommands()
619 osec->commands.clear(); in processSectionCommands()
630 if (!matchConstraints(v, osec->constraint)) { in processSectionCommands()
633 osec->commands.clear(); in processSectionCommands()
640 if (osec->subalignExpr) { in processSectionCommands()
641 uint32_t subalign = osec->subalignExpr().getValue(); in processSectionCommands()
649 osec->partition = 1; in processSectionCommands()
658 OutputSection *osec = &osd->osec; in processSectionCommands() local
659 if (process(osec) && in processSectionCommands()
660 !map.try_emplace(CachedHashStringRef(osec->name), osd).second) in processSectionCommands()
661 warn("OVERWRITE_SECTIONS specifies duplicate " + osec->name); in processSectionCommands()
665 OutputSection *osec = &osd->osec; in processSectionCommands() local
666 if (OutputDesc *overwrite = map.lookup(CachedHashStringRef(osec->name))) { in processSectionCommands()
667 log(overwrite->osec.location + " overwrites " + osec->name); in processSectionCommands()
668 overwrite->osec.sectionIndex = i++; in processSectionCommands()
670 } else if (process(osec)) { in processSectionCommands()
671 osec->sectionIndex = i++; in processSectionCommands()
679 if (osd->osec.partition == 1 && osd->osec.sectionIndex == UINT32_MAX) in processSectionCommands()
702 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in processSymbolAssignments()
714 if (osd->osec.name == name) in findByName()
715 return &osd->osec; in findByName()
721 osd->osec.recordSection(isec); in createSection()
754 out->relocationSection = &osd->osec; in addInputSec()
825 v.push_back(&osd->osec); in addInputSec()
1184 auto *sec = &cast<OutputDesc>(cmd)->osec; in adjustOutputSections()
1245 OutputSection *sec = &osd->osec; in adjustSectionsAfterSorting()
1273 maybePropagatePhdrs(osd->osec, defPhdrs); in adjustSectionsAfterSorting()
1369 assignOffsets(&cast<OutputDesc>(cmd)->osec); in assignAddresses()
1501 const OutputSection *osec, uint64_t addr) { in checkMemoryRegion() argument
1502 uint64_t osecEnd = addr + osec->size; in checkMemoryRegion()
1505 error("section '" + osec->name + "' will not fit in region '" + in checkMemoryRegion()