Lines Matching refs:Sec
194 for (const auto &Sec : Doc.Sections) in initSectionHeaders() local
195 DotShStrtab.add(Sec->Name); in initSectionHeaders()
198 for (const auto &Sec : Doc.Sections) { in initSectionHeaders() local
200 SHeader.sh_name = DotShStrtab.getOffset(Sec->Name); in initSectionHeaders()
201 SHeader.sh_type = Sec->Type; in initSectionHeaders()
202 SHeader.sh_flags = Sec->Flags; in initSectionHeaders()
203 SHeader.sh_addr = Sec->Address; in initSectionHeaders()
204 SHeader.sh_addralign = Sec->AddressAlign; in initSectionHeaders()
206 if (!Sec->Link.empty()) { in initSectionHeaders()
208 if (SN2I.lookup(Sec->Link, Index)) { in initSectionHeaders()
209 errs() << "error: Unknown section referenced: '" << Sec->Link in initSectionHeaders()
210 << "' at YAML section '" << Sec->Name << "'.\n"; in initSectionHeaders()
216 if (auto S = dyn_cast<ELFYAML::RawContentSection>(Sec.get())) in initSectionHeaders()
218 else if (auto S = dyn_cast<ELFYAML::RelocationSection>(Sec.get())) { in initSectionHeaders()
235 } else if (auto S = dyn_cast<ELFYAML::Group>(Sec.get())) { in initSectionHeaders()
245 } else if (auto S = dyn_cast<ELFYAML::MipsABIFlags>(Sec.get())) { in initSectionHeaders()
248 } else if (auto S = dyn_cast<ELFYAML::NoBitsSection>(Sec.get())) { in initSectionHeaders()