Lines Matching defs:osec
586 osd->osec.addrExpr = addrExpr;
588 osd->osec.lmaExpr = [=] { return prev->getLMA() + prev->size; };
590 osd->osec.lmaExpr = lmaExpr;
593 osd->osec.usedInExpression = true;
594 addrExpr = [=]() -> ExprValue { return {&osd->osec, false, 0, ""}; };
597 prev = &osd->osec;
607 max = std::max(max, cast<OutputDesc>(cmd)->osec.size);
645 osd->osec.relro = false;
664 names.push_back(os->osec.name);
951 osd->osec.inOverlay = true;
958 osd->osec.commands.push_back(
961 osd->osec.phdrs = readOutputSectionPhdrs();
968 OutputSection *osec = &cmd->osec;
970 osec->relro = script->seenDataAlign && !script->seenRelroEnd;
975 readSectionAddressType(osec);
980 osec->lmaExpr = readParenExpr();
982 osec->alignExpr = checkAlignment(readParenExpr(), location);
984 osec->subalignExpr = checkAlignment(readParenExpr(), location);
988 osec->constraint = ConstraintKind::ReadOnly;
990 osec->constraint = ConstraintKind::ReadWrite;
998 osec->commands.push_back(assign);
1000 osec->commands.push_back(data);
1011 osec->filler = readFill();
1019 osec->commands.push_back(readInputSectionDescription(tok));
1029 osec->commands.push_back(isd);
1034 osec->memoryRegionName = std::string(next());
1038 osec->lmaRegionName = std::string(next());
1041 if (osec->lmaExpr && !osec->lmaRegionName.empty())
1044 osec->phdrs = readOutputSectionPhdrs();
1049 osec->filler = readFill();
1057 osec->expressionsUseSymbols = true;
1411 static void checkIfExists(const OutputSection &osec, StringRef location) {
1412 if (osec.location.empty() && script->errorOnMissingSection)
1413 script->recordError(location + ": undefined section " + osec.name);
1455 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec;
1456 osec->usedInExpression = true;
1458 checkIfExists(*osec, location);
1459 return {osec, false, 0, location};
1480 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec;
1482 checkIfExists(*osec, location);
1483 return osec->addralign;
1541 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec;
1542 osec->usedInExpression = true;
1544 checkIfExists(*osec, location);
1545 return osec->getLMA();
1585 OutputSection *cmd = &script->getOrCreateOutputSection(name)->osec;