• Home
  • Raw
  • Download

Lines Matching refs:ELFYAML

28 ELFYAML::Chunk::~Chunk() = default;
30 namespace ELFYAML { namespace
40 void ScalarEnumerationTraits<ELFYAML::ELF_ET>::enumeration( in enumeration()
41 IO &IO, ELFYAML::ELF_ET &Value) { in enumeration()
52 void ScalarEnumerationTraits<ELFYAML::ELF_PT>::enumeration( in enumeration()
53 IO &IO, ELFYAML::ELF_PT &Value) { in enumeration()
71 void ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration( in enumeration()
72 IO &IO, ELFYAML::ELF_EM &Value) { in enumeration()
239 void ScalarEnumerationTraits<ELFYAML::ELF_ELFCLASS>::enumeration( in enumeration()
240 IO &IO, ELFYAML::ELF_ELFCLASS &Value) { in enumeration()
249 void ScalarEnumerationTraits<ELFYAML::ELF_ELFDATA>::enumeration( in enumeration()
250 IO &IO, ELFYAML::ELF_ELFDATA &Value) { in enumeration()
260 void ScalarEnumerationTraits<ELFYAML::ELF_ELFOSABI>::enumeration( in enumeration()
261 IO &IO, ELFYAML::ELF_ELFOSABI &Value) { in enumeration()
292 void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO, in bitset()
293 ELFYAML::ELF_EF &Value) { in bitset()
294 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in bitset()
460 void ScalarEnumerationTraits<ELFYAML::ELF_SHT>::enumeration( in enumeration()
461 IO &IO, ELFYAML::ELF_SHT &Value) { in enumeration()
462 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in enumeration()
532 void ScalarBitSetTraits<ELFYAML::ELF_PF>::bitset(IO &IO, in bitset()
533 ELFYAML::ELF_PF &Value) { in bitset()
540 void ScalarBitSetTraits<ELFYAML::ELF_SHF>::bitset(IO &IO, in bitset()
541 ELFYAML::ELF_SHF &Value) { in bitset()
542 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in bitset()
583 void ScalarEnumerationTraits<ELFYAML::ELF_SHN>::enumeration( in enumeration()
584 IO &IO, ELFYAML::ELF_SHN &Value) { in enumeration()
606 void ScalarEnumerationTraits<ELFYAML::ELF_STB>::enumeration( in enumeration()
607 IO &IO, ELFYAML::ELF_STB &Value) { in enumeration()
617 void ScalarEnumerationTraits<ELFYAML::ELF_STT>::enumeration( in enumeration()
618 IO &IO, ELFYAML::ELF_STT &Value) { in enumeration()
633 void ScalarEnumerationTraits<ELFYAML::ELF_RSS>::enumeration( in enumeration()
634 IO &IO, ELFYAML::ELF_RSS &Value) { in enumeration()
643 void ScalarEnumerationTraits<ELFYAML::ELF_REL>::enumeration( in enumeration()
644 IO &IO, ELFYAML::ELF_REL &Value) { in enumeration()
645 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in enumeration()
700 void ScalarEnumerationTraits<ELFYAML::ELF_DYNTAG>::enumeration( in enumeration()
701 IO &IO, ELFYAML::ELF_DYNTAG &Value) { in enumeration()
702 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in enumeration()
768 void ScalarEnumerationTraits<ELFYAML::MIPS_AFL_REG>::enumeration( in enumeration()
769 IO &IO, ELFYAML::MIPS_AFL_REG &Value) { in enumeration()
778 void ScalarEnumerationTraits<ELFYAML::MIPS_ABI_FP>::enumeration( in enumeration()
779 IO &IO, ELFYAML::MIPS_ABI_FP &Value) { in enumeration()
792 void ScalarEnumerationTraits<ELFYAML::MIPS_AFL_EXT>::enumeration( in enumeration()
793 IO &IO, ELFYAML::MIPS_AFL_EXT &Value) { in enumeration()
818 void ScalarEnumerationTraits<ELFYAML::MIPS_ISA>::enumeration( in enumeration()
819 IO &IO, ELFYAML::MIPS_ISA &Value) { in enumeration()
830 void ScalarBitSetTraits<ELFYAML::MIPS_AFL_ASE>::bitset( in bitset()
831 IO &IO, ELFYAML::MIPS_AFL_ASE &Value) { in bitset()
851 void ScalarBitSetTraits<ELFYAML::MIPS_AFL_FLAGS1>::bitset( in bitset()
852 IO &IO, ELFYAML::MIPS_AFL_FLAGS1 &Value) { in bitset()
858 void MappingTraits<ELFYAML::SectionHeader>::mapping( in mapping()
859 IO &IO, ELFYAML::SectionHeader &SHdr) { in mapping()
863 void MappingTraits<ELFYAML::SectionHeaderTable>::mapping( in mapping()
864 IO &IO, ELFYAML::SectionHeaderTable &SectionHeader) { in mapping()
870 std::string MappingTraits<ELFYAML::SectionHeaderTable>::validate( in validate()
871 IO &IO, ELFYAML::SectionHeaderTable &SecHdrTable) { in validate()
880 void MappingTraits<ELFYAML::FileHeader>::mapping(IO &IO, in mapping()
881 ELFYAML::FileHeader &FileHdr) { in mapping()
884 IO.mapOptional("OSABI", FileHdr.OSABI, ELFYAML::ELF_ELFOSABI(0)); in mapping()
888 IO.mapOptional("Flags", FileHdr.Flags, ELFYAML::ELF_EF(0)); in mapping()
903 void MappingTraits<ELFYAML::ProgramHeader>::mapping( in mapping()
904 IO &IO, ELFYAML::ProgramHeader &Phdr) { in mapping()
906 IO.mapOptional("Flags", Phdr.Flags, ELFYAML::ELF_PF(0)); in mapping()
917 std::string MappingTraits<ELFYAML::ProgramHeader>::validate( in validate()
918 IO &IO, ELFYAML::ProgramHeader &FileHdr) { in validate()
942 template <> struct ScalarTraits<ELFYAML::YAMLFlowString> {
943 static void output(const ELFYAML::YAMLFlowString &Val, void *, in output()
948 ELFYAML::YAMLFlowString &Val) { in input()
956 template <> struct SequenceElementTraits<ELFYAML::YAMLFlowString> {
968 const auto *Object = static_cast<ELFYAML::Object *>(YamlIO.getContext()); in NormalizedOther()
988 const auto *Object = static_cast<ELFYAML::Object *>(YamlIO.getContext()); in toValue()
1053 void ScalarTraits<ELFYAML::YAMLIntUInt>::output(const ELFYAML::YAMLIntUInt &Val, in output()
1058 StringRef ScalarTraits<ELFYAML::YAMLIntUInt>::input(StringRef Scalar, void *Ctx, in input()
1059 ELFYAML::YAMLIntUInt &Val) { in input()
1060 const bool Is64 = static_cast<ELFYAML::Object *>(Ctx)->Header.Class == in input()
1061 ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64); in input()
1085 void MappingTraits<ELFYAML::Symbol>::mapping(IO &IO, ELFYAML::Symbol &Symbol) { in mapping()
1088 IO.mapOptional("Type", Symbol.Type, ELFYAML::ELF_STT(0)); in mapping()
1091 IO.mapOptional("Binding", Symbol.Binding, ELFYAML::ELF_STB(0)); in mapping()
1105 std::string MappingTraits<ELFYAML::Symbol>::validate(IO &IO, in validate()
1106 ELFYAML::Symbol &Symbol) { in validate()
1112 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping()
1139 static void sectionMapping(IO &IO, ELFYAML::DynamicSection &Section) { in sectionMapping()
1144 static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { in sectionMapping()
1160 static void sectionMapping(IO &IO, ELFYAML::BBAddrMapSection &Section) { in sectionMapping()
1166 static void sectionMapping(IO &IO, ELFYAML::StackSizesSection &Section) { in sectionMapping()
1171 static void sectionMapping(IO &IO, ELFYAML::HashSection &Section) { in sectionMapping()
1184 static void sectionMapping(IO &IO, ELFYAML::NoteSection &Section) { in sectionMapping()
1190 static void sectionMapping(IO &IO, ELFYAML::GnuHashSection &Section) { in sectionMapping()
1197 static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { in sectionMapping()
1201 static void sectionMapping(IO &IO, ELFYAML::VerdefSection &Section) { in sectionMapping()
1207 static void sectionMapping(IO &IO, ELFYAML::SymverSection &Section) { in sectionMapping()
1212 static void sectionMapping(IO &IO, ELFYAML::VerneedSection &Section) { in sectionMapping()
1218 static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { in sectionMapping()
1224 static void sectionMapping(IO &IO, ELFYAML::RelrSection &Section) { in sectionMapping()
1229 static void groupSectionMapping(IO &IO, ELFYAML::GroupSection &Group) { in groupSectionMapping()
1235 static void sectionMapping(IO &IO, ELFYAML::SymtabShndxSection &Section) { in sectionMapping()
1240 static void sectionMapping(IO &IO, ELFYAML::AddrsigSection &Section) { in sectionMapping()
1245 static void fillMapping(IO &IO, ELFYAML::Fill &Fill) { in fillMapping()
1252 static void sectionMapping(IO &IO, ELFYAML::LinkerOptionsSection &Section) { in sectionMapping()
1258 ELFYAML::DependentLibrariesSection &Section) { in sectionMapping()
1263 static void sectionMapping(IO &IO, ELFYAML::CallGraphProfileSection &Section) { in sectionMapping()
1268 void MappingTraits<ELFYAML::SectionOrType>::mapping( in mapping()
1269 IO &IO, ELFYAML::SectionOrType &sectionOrType) { in mapping()
1273 static void sectionMapping(IO &IO, ELFYAML::ARMIndexTableSection &Section) { in sectionMapping()
1278 static void sectionMapping(IO &IO, ELFYAML::MipsABIFlags &Section) { in sectionMapping()
1284 ELFYAML::MIPS_AFL_EXT(Mips::AFL_EXT_NONE)); in sectionMapping()
1285 IO.mapOptional("ASEs", Section.ASEs, ELFYAML::MIPS_AFL_ASE(0)); in sectionMapping()
1287 ELFYAML::MIPS_ABI_FP(Mips::Val_GNU_MIPS_ABI_FP_ANY)); in sectionMapping()
1289 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
1291 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
1293 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
1294 IO.mapOptional("Flags1", Section.Flags1, ELFYAML::MIPS_AFL_FLAGS1(0)); in sectionMapping()
1304 void MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::mapping( in mapping()
1305 IO &IO, std::unique_ptr<ELFYAML::Chunk> &Section) { in mapping()
1306 ELFYAML::ELF_SHT Type; in mapping()
1308 Type = cast<ELFYAML::Section>(Section.get())->Type; in mapping()
1314 Section.reset(new ELFYAML::Fill()); in mapping()
1315 fillMapping(IO, *cast<ELFYAML::Fill>(Section.get())); in mapping()
1322 const auto &Obj = *static_cast<ELFYAML::Object *>(IO.getContext()); in mapping()
1325 Section.reset(new ELFYAML::MipsABIFlags()); in mapping()
1326 sectionMapping(IO, *cast<ELFYAML::MipsABIFlags>(Section.get())); in mapping()
1332 Section.reset(new ELFYAML::ARMIndexTableSection()); in mapping()
1333 sectionMapping(IO, *cast<ELFYAML::ARMIndexTableSection>(Section.get())); in mapping()
1340 Section.reset(new ELFYAML::DynamicSection()); in mapping()
1341 sectionMapping(IO, *cast<ELFYAML::DynamicSection>(Section.get())); in mapping()
1346 Section.reset(new ELFYAML::RelocationSection()); in mapping()
1347 sectionMapping(IO, *cast<ELFYAML::RelocationSection>(Section.get())); in mapping()
1351 Section.reset(new ELFYAML::RelrSection()); in mapping()
1352 sectionMapping(IO, *cast<ELFYAML::RelrSection>(Section.get())); in mapping()
1356 Section.reset(new ELFYAML::GroupSection()); in mapping()
1357 groupSectionMapping(IO, *cast<ELFYAML::GroupSection>(Section.get())); in mapping()
1361 Section.reset(new ELFYAML::NoBitsSection()); in mapping()
1362 sectionMapping(IO, *cast<ELFYAML::NoBitsSection>(Section.get())); in mapping()
1366 Section.reset(new ELFYAML::HashSection()); in mapping()
1367 sectionMapping(IO, *cast<ELFYAML::HashSection>(Section.get())); in mapping()
1371 Section.reset(new ELFYAML::NoteSection()); in mapping()
1372 sectionMapping(IO, *cast<ELFYAML::NoteSection>(Section.get())); in mapping()
1376 Section.reset(new ELFYAML::GnuHashSection()); in mapping()
1377 sectionMapping(IO, *cast<ELFYAML::GnuHashSection>(Section.get())); in mapping()
1381 Section.reset(new ELFYAML::VerdefSection()); in mapping()
1382 sectionMapping(IO, *cast<ELFYAML::VerdefSection>(Section.get())); in mapping()
1386 Section.reset(new ELFYAML::SymverSection()); in mapping()
1387 sectionMapping(IO, *cast<ELFYAML::SymverSection>(Section.get())); in mapping()
1391 Section.reset(new ELFYAML::VerneedSection()); in mapping()
1392 sectionMapping(IO, *cast<ELFYAML::VerneedSection>(Section.get())); in mapping()
1396 Section.reset(new ELFYAML::SymtabShndxSection()); in mapping()
1397 sectionMapping(IO, *cast<ELFYAML::SymtabShndxSection>(Section.get())); in mapping()
1401 Section.reset(new ELFYAML::AddrsigSection()); in mapping()
1402 sectionMapping(IO, *cast<ELFYAML::AddrsigSection>(Section.get())); in mapping()
1406 Section.reset(new ELFYAML::LinkerOptionsSection()); in mapping()
1407 sectionMapping(IO, *cast<ELFYAML::LinkerOptionsSection>(Section.get())); in mapping()
1411 Section.reset(new ELFYAML::DependentLibrariesSection()); in mapping()
1413 *cast<ELFYAML::DependentLibrariesSection>(Section.get())); in mapping()
1417 Section.reset(new ELFYAML::CallGraphProfileSection()); in mapping()
1418 sectionMapping(IO, *cast<ELFYAML::CallGraphProfileSection>(Section.get())); in mapping()
1422 Section.reset(new ELFYAML::BBAddrMapSection()); in mapping()
1423 sectionMapping(IO, *cast<ELFYAML::BBAddrMapSection>(Section.get())); in mapping()
1429 Name = ELFYAML::dropUniqueSuffix(Name); in mapping()
1431 if (ELFYAML::StackSizesSection::nameMatches(Name)) in mapping()
1432 Section = std::make_unique<ELFYAML::StackSizesSection>(); in mapping()
1434 Section = std::make_unique<ELFYAML::RawContentSection>(); in mapping()
1437 if (auto S = dyn_cast<ELFYAML::RawContentSection>(Section.get())) in mapping()
1440 sectionMapping(IO, *cast<ELFYAML::StackSizesSection>(Section.get())); in mapping()
1444 std::string MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::validate( in validate()
1445 IO &io, std::unique_ptr<ELFYAML::Chunk> &C) { in validate()
1446 if (const auto *F = dyn_cast<ELFYAML::Fill>(C.get())) { in validate()
1452 const ELFYAML::Section &Sec = *cast<ELFYAML::Section>(C.get()); in validate()
1484 if (const auto *RawSection = dyn_cast<ELFYAML::RawContentSection>(C.get())) { in validate()
1490 if (const auto *NB = dyn_cast<ELFYAML::NoBitsSection>(C.get())) { in validate()
1496 if (const auto *MF = dyn_cast<ELFYAML::MipsABIFlags>(C.get())) { in validate()
1512 : Type(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
1513 Type2(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
1514 Type3(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
1515 SpecSym(ELFYAML::ELF_REL(ELF::RSS_UNDEF)) {} in NormalizedMips64RelType()
1516 NormalizedMips64RelType(IO &, ELFYAML::ELF_REL Original) in NormalizedMips64RelType()
1520 ELFYAML::ELF_REL denormalize(IO &) { in denormalize()
1521 ELFYAML::ELF_REL Res = Type | Type2 << 8 | Type3 << 16 | SpecSym << 24; in denormalize()
1525 ELFYAML::ELF_REL Type;
1526 ELFYAML::ELF_REL Type2;
1527 ELFYAML::ELF_REL Type3;
1528 ELFYAML::ELF_RSS SpecSym;
1533 void MappingTraits<ELFYAML::StackSizeEntry>::mapping( in mapping()
1534 IO &IO, ELFYAML::StackSizeEntry &E) { in mapping()
1540 void MappingTraits<ELFYAML::BBAddrMapEntry>::mapping( in mapping()
1541 IO &IO, ELFYAML::BBAddrMapEntry &E) { in mapping()
1547 void MappingTraits<ELFYAML::BBAddrMapEntry::BBEntry>::mapping( in mapping()
1548 IO &IO, ELFYAML::BBAddrMapEntry::BBEntry &E) { in mapping()
1555 void MappingTraits<ELFYAML::GnuHashHeader>::mapping(IO &IO, in mapping()
1556 ELFYAML::GnuHashHeader &E) { in mapping()
1564 void MappingTraits<ELFYAML::DynamicEntry>::mapping(IO &IO, in mapping()
1565 ELFYAML::DynamicEntry &Rel) { in mapping()
1572 void MappingTraits<ELFYAML::NoteEntry>::mapping(IO &IO, ELFYAML::NoteEntry &N) { in mapping()
1580 void MappingTraits<ELFYAML::VerdefEntry>::mapping(IO &IO, in mapping()
1581 ELFYAML::VerdefEntry &E) { in mapping()
1591 void MappingTraits<ELFYAML::VerneedEntry>::mapping(IO &IO, in mapping()
1592 ELFYAML::VerneedEntry &E) { in mapping()
1600 void MappingTraits<ELFYAML::VernauxEntry>::mapping(IO &IO, in mapping()
1601 ELFYAML::VernauxEntry &E) { in mapping()
1610 void MappingTraits<ELFYAML::Relocation>::mapping(IO &IO, in mapping()
1611 ELFYAML::Relocation &Rel) { in mapping()
1612 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in mapping()
1618 if (Object->getMachine() == ELFYAML::ELF_EM(ELF::EM_MIPS) && in mapping()
1619 Object->Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64)) { in mapping()
1620 MappingNormalization<NormalizedMips64RelType, ELFYAML::ELF_REL> Key( in mapping()
1623 IO.mapOptional("Type2", Key->Type2, ELFYAML::ELF_REL(ELF::R_MIPS_NONE)); in mapping()
1624 IO.mapOptional("Type3", Key->Type3, ELFYAML::ELF_REL(ELF::R_MIPS_NONE)); in mapping()
1625 IO.mapOptional("SpecSym", Key->SpecSym, ELFYAML::ELF_RSS(ELF::RSS_UNDEF)); in mapping()
1629 IO.mapOptional("Addend", Rel.Addend, (ELFYAML::YAMLIntUInt)0); in mapping()
1632 void MappingTraits<ELFYAML::ARMIndexTableEntry>::mapping( in mapping()
1633 IO &IO, ELFYAML::ARMIndexTableEntry &E) { in mapping()
1646 void MappingTraits<ELFYAML::Object>::mapping(IO &IO, ELFYAML::Object &Object) { in mapping()
1659 Object.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB); in mapping()
1661 Object.Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64); in mapping()
1666 void MappingTraits<ELFYAML::LinkerOption>::mapping(IO &IO, in mapping()
1667 ELFYAML::LinkerOption &Opt) { in mapping()
1673 void MappingTraits<ELFYAML::CallGraphEntry>::mapping( in mapping()
1674 IO &IO, ELFYAML::CallGraphEntry &E) { in mapping()