Lines Matching refs:osec
543 osd->osec.addrExpr = addrExpr; in readOverlay()
545 osd->osec.lmaExpr = [=] { return prev->getLMA() + prev->size; }; in readOverlay()
547 osd->osec.lmaExpr = lmaExpr; in readOverlay()
549 prev = &osd->osec; in readOverlay()
559 max = std::max(max, cast<OutputDesc>(cmd)->osec.size); in readOverlay()
597 osd->osec.relro = false; in readSections()
616 names.push_back(os->osec.name); in readSections()
889 osd->osec.inOverlay = true; in readOverlaySectionDescription()
896 osd->osec.commands.push_back( in readOverlaySectionDescription()
904 OutputSection *osec = &cmd->osec; in readOutputSectionDescription() local
906 osec->relro = seenDataAlign && !seenRelroEnd; in readOutputSectionDescription()
911 readSectionAddressType(osec); in readOutputSectionDescription()
916 osec->lmaExpr = readParenExpr(); in readOutputSectionDescription()
918 osec->alignExpr = checkAlignment(readParenExpr(), location); in readOutputSectionDescription()
920 osec->subalignExpr = checkAlignment(readParenExpr(), location); in readOutputSectionDescription()
924 osec->constraint = ConstraintKind::ReadOnly; in readOutputSectionDescription()
926 osec->constraint = ConstraintKind::ReadWrite; in readOutputSectionDescription()
934 osec->commands.push_back(assign); in readOutputSectionDescription()
936 osec->commands.push_back(data); in readOutputSectionDescription()
947 osec->filler = readFill(); in readOutputSectionDescription()
955 osec->commands.push_back(readInputSectionDescription(tok)); in readOutputSectionDescription()
965 osec->commands.push_back(isd); in readOutputSectionDescription()
970 osec->memoryRegionName = std::string(next()); in readOutputSectionDescription()
974 osec->lmaRegionName = std::string(next()); in readOutputSectionDescription()
977 if (osec->lmaExpr && !osec->lmaRegionName.empty()) in readOutputSectionDescription()
980 osec->phdrs = readOutputSectionPhdrs(); in readOutputSectionDescription()
985 osec->filler = readFill(); in readOutputSectionDescription()
993 osec->expressionsUseSymbols = true; in readOutputSectionDescription()
1339 static void checkIfExists(const OutputSection &osec, StringRef location) { in checkIfExists() argument
1340 if (osec.location.empty() && script->errorOnMissingSection) in checkIfExists()
1341 error(location + ": undefined section " + osec.name); in checkIfExists()
1383 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
1384 osec->usedInExpression = true; in readPrimary()
1386 checkIfExists(*osec, location); in readPrimary()
1387 return {osec, false, 0, location}; in readPrimary()
1408 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
1410 checkIfExists(*osec, location); in readPrimary()
1411 return osec->alignment; in readPrimary()
1466 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
1467 osec->usedInExpression = true; in readPrimary()
1469 checkIfExists(*osec, location); in readPrimary()
1470 return osec->getLMA(); in readPrimary()
1510 OutputSection *cmd = &script->getOrCreateOutputSection(name)->osec; in readPrimary()