Lines Matching refs:osec

138   if (secRef && secRef->osec.location.empty()) {  in createOutputSection()
146 sec->osec.location = std::string(location); in createOutputSection()
280 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in getSymbolAssignmentValues()
316 cast<OutputDesc>(subCmd)->osec.name == name; in processInsertCommands()
327 return to != nullptr && to->osec.name == cmd.where; in processInsertCommands()
356 const OutputSection &sec = cast<OutputDesc>(cmd)->osec; in declareSymbols()
655 auto process = [this](OutputSection *osec) { in processSectionCommands() argument
656 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
660 if (osec->name == "/DISCARD/") { in processSectionCommands()
663 discardSynthetic(*osec); in processSectionCommands()
664 osec->commands.clear(); in processSectionCommands()
675 if (!matchConstraints(v, osec->constraint)) { in processSectionCommands()
678 osec->commands.clear(); in processSectionCommands()
685 if (osec->subalignExpr) { in processSectionCommands()
686 uint32_t subalign = osec->subalignExpr().getValue(); in processSectionCommands()
694 osec->partition = 1; in processSectionCommands()
706 OutputSection *osec = &osd->osec; in processSectionCommands() local
707 if (process(osec) && in processSectionCommands()
708 !map.try_emplace(CachedHashStringRef(osec->name), osd).second) in processSectionCommands()
709 warn("OVERWRITE_SECTIONS specifies duplicate " + osec->name); in processSectionCommands()
713 OutputSection *osec = &osd->osec; in processSectionCommands() local
714 if (OutputDesc *overwrite = map.lookup(CachedHashStringRef(osec->name))) { in processSectionCommands()
715 log(overwrite->osec.location + " overwrites " + osec->name); in processSectionCommands()
716 overwrite->osec.sectionIndex = i++; in processSectionCommands()
718 } else if (process(osec)) { in processSectionCommands()
719 osec->sectionIndex = i++; in processSectionCommands()
727 if (osd->osec.partition == 1 && osd->osec.sectionIndex == UINT32_MAX) in processSectionCommands()
750 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in processSymbolAssignments()
762 if (osd->osec.name == name) in findByName()
763 return &osd->osec; in findByName()
769 osd->osec.recordSection(isec); in createSection()
801 out->relocationSection = &osd->osec; in addInputSec()
872 v.push_back(&osd->osec); in addInputSec()
1231 auto *sec = &cast<OutputDesc>(cmd)->osec; in adjustOutputSections()
1294 OutputSection *sec = &osd->osec; in adjustSectionsAfterSorting()
1322 maybePropagatePhdrs(osd->osec, defPhdrs); in adjustSectionsAfterSorting()
1420 if (assignOffsets(&cast<OutputDesc>(cmd)->osec) && !changedOsec) in assignAddresses()
1421 changedOsec = &cast<OutputDesc>(cmd)->osec; in assignAddresses()
1448 OutputSection *osec = &od->osec; in spillSections() local
1449 if (!osec->memRegion) in spillSections()
1456 for (SectionCommand *cmd : reverse(osec->commands)) { in spillSections()
1457 if (!hasRegionOverflowed(osec->memRegion) && in spillSections()
1458 !hasRegionOverflowed(osec->lmaRegion)) in spillSections()
1491 osec->memRegion->curPos -= isec->getSize(); in spillSections()
1492 if (osec->lmaRegion) in spillSections()
1493 osec->lmaRegion->curPos -= isec->getSize(); in spillSections()
1498 if (!hasRegionOverflowed(osec->memRegion) && in spillSections()
1499 !hasRegionOverflowed(osec->lmaRegion)) in spillSections()
1666 const OutputSection *osec, uint64_t addr) { in checkMemoryRegion() argument
1667 uint64_t osecEnd = addr + osec->size; in checkMemoryRegion()
1670 error("section '" + osec->name + "' will not fit in region '" + in checkMemoryRegion()