Lines Matching refs:Cmd
83 bool readSectionDirective(OutputSection *Cmd, StringRef Tok1, StringRef Tok2);
84 void readSectionAddressType(OutputSection *Cmd);
264 } else if (SymbolAssignment *Cmd = readAssignment(Tok)) { in readLinkerScript() local
265 Script->SectionCommands.push_back(Cmd); in readLinkerScript()
278 SymbolAssignment *Cmd = make<SymbolAssignment>(Name, E, getCurrentLocation()); in readDefsym() local
279 Script->SectionCommands.push_back(Cmd); in readDefsym()
437 PhdrsCommand Cmd; in readPhdrs() local
438 Cmd.Name = next(); in readPhdrs()
439 Cmd.Type = readPhdrType(); in readPhdrs()
443 Cmd.HasFilehdr = true; in readPhdrs()
445 Cmd.HasPhdrs = true; in readPhdrs()
447 Cmd.LMAExpr = readParenExpr(); in readPhdrs()
449 Cmd.Flags = readParenExpr()().getValue(); in readPhdrs()
454 Script->PhdrsCommands.push_back(Cmd); in readPhdrs()
515 for (BaseCommand *Cmd : V) in readOverlay()
516 Max = std::max(Max, cast<OutputSection>(Cmd)->Size); in readOverlay()
536 for (BaseCommand *Cmd : readOverlay()) in readSections()
537 V.push_back(Cmd); in readSections()
544 if (BaseCommand *Cmd = readAssignment(Tok)) in readSections() local
545 V.push_back(Cmd); in readSections()
663 auto *Cmd = make<InputSectionDescription>(FilePattern); in readInputSectionRules() local
690 std::move(V.begin(), V.end(), std::back_inserter(Cmd->SectionPatterns)); in readInputSectionRules()
692 return Cmd; in readInputSectionRules()
702 InputSectionDescription *Cmd = readInputSectionRules(FilePattern); in readInputSectionDescription() local
704 Script->KeptSections.push_back(Cmd); in readInputSectionDescription()
705 return Cmd; in readInputSectionDescription()
744 bool ScriptParser::readSectionDirective(OutputSection *Cmd, StringRef Tok1, StringRef Tok2) { in readSectionDirective() argument
752 Cmd->Noload = true; in readSectionDirective()
755 Cmd->NonAlloc = true; in readSectionDirective()
772 void ScriptParser::readSectionAddressType(OutputSection *Cmd) { in readSectionAddressType() argument
773 if (readSectionDirective(Cmd, peek(), peek2())) in readSectionAddressType()
776 Cmd->AddrExpr = readExpr(); in readSectionAddressType()
777 if (peek() == "(" && !readSectionDirective(Cmd, "(", peek2())) in readSectionAddressType()
793 OutputSection *Cmd = in readOverlaySectionDescription() local
795 Cmd->InOverlay = true; in readOverlaySectionDescription()
798 Cmd->SectionCommands.push_back(readInputSectionRules(next())); in readOverlaySectionDescription()
799 Cmd->Phdrs = readOutputSectionPhdrs(); in readOverlaySectionDescription()
800 return Cmd; in readOverlaySectionDescription()
804 OutputSection *Cmd = in readOutputSectionDescription() local
810 readSectionAddressType(Cmd); in readOutputSectionDescription()
815 Cmd->LMAExpr = readParenExpr(); in readOutputSectionDescription()
817 Cmd->AlignExpr = checkAlignment(readParenExpr(), Location); in readOutputSectionDescription()
819 Cmd->SubalignExpr = checkAlignment(readParenExpr(), Location); in readOutputSectionDescription()
823 Cmd->Constraint = ConstraintKind::ReadOnly; in readOutputSectionDescription()
825 Cmd->Constraint = ConstraintKind::ReadWrite; in readOutputSectionDescription()
833 Cmd->SectionCommands.push_back(Assign); in readOutputSectionDescription()
835 Cmd->SectionCommands.push_back(Data); in readOutputSectionDescription()
841 Cmd->Filler = readFill(); in readOutputSectionDescription()
847 Cmd->SectionCommands.push_back(readInputSectionDescription(Tok)); in readOutputSectionDescription()
854 Cmd->SectionCommands.push_back(ISD); in readOutputSectionDescription()
859 Cmd->MemoryRegionName = next(); in readOutputSectionDescription()
863 Cmd->LMARegionName = next(); in readOutputSectionDescription()
866 if (Cmd->LMAExpr && !Cmd->LMARegionName.empty()) in readOutputSectionDescription()
869 Cmd->Phdrs = readOutputSectionPhdrs(); in readOutputSectionDescription()
872 Cmd->Filler = parseFill(next()); in readOutputSectionDescription()
874 Cmd->Filler = parseFill(next().drop_front()); in readOutputSectionDescription()
880 Cmd->ExpressionsUseSymbols = true; in readOutputSectionDescription()
881 return Cmd; in readOutputSectionDescription()
903 SymbolAssignment *Cmd = readSymbolAssignment(next()); in readProvideHidden() local
904 Cmd->Provide = Provide; in readProvideHidden()
905 Cmd->Hidden = Hidden; in readProvideHidden()
907 return Cmd; in readProvideHidden()
916 SymbolAssignment *Cmd = nullptr; in readAssignment() local
918 Cmd = readSymbolAssignment(Tok); in readAssignment()
920 Cmd = readProvideHidden(true, false); in readAssignment()
922 Cmd = readProvideHidden(false, true); in readAssignment()
924 Cmd = readProvideHidden(true, true); in readAssignment()
926 if (Cmd) { in readAssignment()
927 Cmd->CommandString = in readAssignment()
932 return Cmd; in readAssignment()
1120 static void checkIfExists(OutputSection *Cmd, StringRef Location) { in checkIfExists() argument
1121 if (Cmd->Location.empty() && Script->ErrorOnMissingSection) in checkIfExists()
1122 error(Location + ": undefined section " + Cmd->Name); in checkIfExists()
1181 OutputSection *Cmd = Script->getOrCreateOutputSection(Name); in readPrimary() local
1183 checkIfExists(Cmd, Location); in readPrimary()
1184 return Cmd->Alignment; in readPrimary()
1233 OutputSection *Cmd = Script->getOrCreateOutputSection(Name); in readPrimary() local
1235 checkIfExists(Cmd, Location); in readPrimary()
1236 return Cmd->getLMA(); in readPrimary()
1267 OutputSection *Cmd = Script->getOrCreateOutputSection(Name); in readPrimary() local
1271 return [=] { return Cmd->Size; }; in readPrimary()