Lines Matching refs:Elf_Shdr

30   ArrayRef<Elf_Shdr> Sections;
42 Expected<StringRef> getUniquedSectionName(const Elf_Shdr &Sec);
45 const Elf_Shdr *SymTab);
51 DenseMap<const Elf_Shdr *, ArrayRef<Elf_Word>> ShndxTables;
59 Error dumpSymbols(const Elf_Shdr *Symtab,
61 Error dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
64 Error dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
65 Error dumpCommonRelocationSection(const Elf_Shdr *Shdr,
68 Error dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab,
71 Expected<ELFYAML::AddrsigSection *> dumpAddrsigSection(const Elf_Shdr *Shdr);
73 dumpLinkerOptionsSection(const Elf_Shdr *Shdr);
75 dumpDependentLibrariesSection(const Elf_Shdr *Shdr);
77 dumpCallGraphProfileSection(const Elf_Shdr *Shdr);
78 Expected<ELFYAML::DynamicSection *> dumpDynamicSection(const Elf_Shdr *Shdr);
79 Expected<ELFYAML::RelocationSection *> dumpRelocSection(const Elf_Shdr *Shdr);
80 Expected<ELFYAML::RelrSection *> dumpRelrSection(const Elf_Shdr *Shdr);
82 dumpContentSection(const Elf_Shdr *Shdr);
84 dumpSymtabShndxSection(const Elf_Shdr *Shdr);
85 Expected<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
86 Expected<ELFYAML::HashSection *> dumpHashSection(const Elf_Shdr *Shdr);
87 Expected<ELFYAML::NoteSection *> dumpNoteSection(const Elf_Shdr *Shdr);
88 Expected<ELFYAML::GnuHashSection *> dumpGnuHashSection(const Elf_Shdr *Shdr);
89 Expected<ELFYAML::VerdefSection *> dumpVerdefSection(const Elf_Shdr *Shdr);
90 Expected<ELFYAML::SymverSection *> dumpSymverSection(const Elf_Shdr *Shdr);
91 Expected<ELFYAML::VerneedSection *> dumpVerneedSection(const Elf_Shdr *Shdr);
92 Expected<ELFYAML::GroupSection *> dumpGroupSection(const Elf_Shdr *Shdr);
94 dumpARMIndexTableSection(const Elf_Shdr *Shdr);
95 Expected<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr);
97 dumpStackSizesSection(const Elf_Shdr *Shdr);
99 dumpBBAddrMapSection(const Elf_Shdr *Shdr);
101 dumpPlaceholderSection(const Elf_Shdr *Shdr);
103 bool shouldPrintSection(const ELFYAML::Section &S, const Elf_Shdr &SHdr,
120 ELFDumper<ELFT>::getUniquedSectionName(const Elf_Shdr &Sec) { in getUniquedSectionName()
148 const Elf_Shdr *SymTab) { in getUniquedSymbolName()
154 Expected<const Elf_Shdr *> ShdrOrErr = in getUniquedSymbolName()
184 const Elf_Shdr &SHdr, in shouldPrintSection()
191 const uint8_t *End = Begin + sizeof(Elf_Shdr); in shouldPrintSection()
312 const Elf_Shdr *SymTab = nullptr; in dump()
313 const Elf_Shdr *DynSymTab = nullptr; in dump()
315 for (const Elf_Shdr &Sec : Sections) { in dump()
326 const Elf_Shdr *LinkedSymTab = cantFail(Obj.getSection(Sec.sh_link)); in dump()
558 ELFDumper<ELFT>::dumpPlaceholderSection(const Elf_Shdr *Shdr) { in dumpPlaceholderSection()
584 -> std::function<Expected<ELFYAML::Chunk *>(const Elf_Shdr *)> { in dumpSections()
586 return [this](const Elf_Shdr *S) { return dumpARMIndexTableSection(S); }; in dumpSections()
590 return [this](const Elf_Shdr *S) { return dumpMipsABIFlags(S); }; in dumpSections()
594 return [this](const Elf_Shdr *S) { return dumpDynamicSection(S); }; in dumpSections()
596 return [this](const Elf_Shdr *S) { return dumpSymtabShndxSection(S); }; in dumpSections()
599 return [this](const Elf_Shdr *S) { return dumpRelocSection(S); }; in dumpSections()
601 return [this](const Elf_Shdr *S) { return dumpRelrSection(S); }; in dumpSections()
603 return [this](const Elf_Shdr *S) { return dumpGroupSection(S); }; in dumpSections()
605 return [this](const Elf_Shdr *S) { return dumpNoBitsSection(S); }; in dumpSections()
607 return [this](const Elf_Shdr *S) { return dumpNoteSection(S); }; in dumpSections()
609 return [this](const Elf_Shdr *S) { return dumpHashSection(S); }; in dumpSections()
611 return [this](const Elf_Shdr *S) { return dumpGnuHashSection(S); }; in dumpSections()
613 return [this](const Elf_Shdr *S) { return dumpVerdefSection(S); }; in dumpSections()
615 return [this](const Elf_Shdr *S) { return dumpSymverSection(S); }; in dumpSections()
617 return [this](const Elf_Shdr *S) { return dumpVerneedSection(S); }; in dumpSections()
619 return [this](const Elf_Shdr *S) { return dumpAddrsigSection(S); }; in dumpSections()
621 return [this](const Elf_Shdr *S) { return dumpLinkerOptionsSection(S); }; in dumpSections()
623 return [this](const Elf_Shdr *S) { in dumpSections()
628 [this](const Elf_Shdr *S) { return dumpCallGraphProfileSection(S); }; in dumpSections()
631 return [this](const Elf_Shdr *S) { return dumpBBAddrMapSection(S); }; in dumpSections()
638 return [this](const Elf_Shdr *S) { return dumpPlaceholderSection(S); }; in dumpSections()
644 for (const Elf_Shdr &Sec : Sections) { in dumpSections()
647 if (std::function<Expected<ELFYAML::Chunk *>(const Elf_Shdr *)> DumpFn = in dumpSections()
676 const Elf_Shdr *Symtab, Optional<std::vector<ELFYAML::Symbol>> &Symbols) { in dumpSymbols()
708 Error ELFDumper<ELFT>::dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab, in dumpSymbol()
732 const Elf_Shdr *Shdr = *ShdrOrErr; in dumpSymbol()
746 Error ELFDumper<ELFT>::dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab, in dumpRelocation()
779 Error ELFDumper<ELFT>::dumpCommonSection(const Elf_Shdr *Shdr, in dumpCommonSection()
802 Expected<const Elf_Shdr *> LinkSection = Obj.getSection(Shdr->sh_link); in dumpCommonSection()
820 const Elf_Shdr *Shdr, ELFYAML::RelocationSection &S) { in dumpCommonRelocationSection()
843 ELFDumper<ELFT>::dumpStackSizesSection(const Elf_Shdr *Shdr) { in dumpStackSizesSection()
876 ELFDumper<ELFT>::dumpBBAddrMapSection(const Elf_Shdr *Shdr) { in dumpBBAddrMapSection()
932 ELFDumper<ELFT>::dumpAddrsigSection(const Elf_Shdr *Shdr) { in dumpAddrsigSection()
973 ELFDumper<ELFT>::dumpLinkerOptionsSection(const Elf_Shdr *Shdr) { in dumpLinkerOptionsSection()
1004 ELFDumper<ELFT>::dumpDependentLibrariesSection(const Elf_Shdr *Shdr) { in dumpDependentLibrariesSection()
1031 ELFDumper<ELFT>::dumpCallGraphProfileSection(const Elf_Shdr *Shdr) { in dumpCallGraphProfileSection()
1077 ELFDumper<ELFT>::dumpDynamicSection(const Elf_Shdr *Shdr) { in dumpDynamicSection()
1095 ELFDumper<ELFT>::dumpRelocSection(const Elf_Shdr *Shdr) { in dumpRelocSection()
1135 ELFDumper<ELFT>::dumpRelrSection(const Elf_Shdr *Shdr) { in dumpRelrSection()
1159 ELFDumper<ELFT>::dumpContentSection(const Elf_Shdr *Shdr) { in dumpContentSection()
1183 ELFDumper<ELFT>::dumpSymtabShndxSection(const Elf_Shdr *Shdr) { in dumpSymtabShndxSection()
1200 ELFDumper<ELFT>::dumpNoBitsSection(const Elf_Shdr *Shdr) { in dumpNoBitsSection()
1211 ELFDumper<ELFT>::dumpNoteSection(const Elf_Shdr *Shdr) { in dumpNoteSection()
1247 ELFDumper<ELFT>::dumpHashSection(const Elf_Shdr *Shdr) { in dumpHashSection()
1288 ELFDumper<ELFT>::dumpGnuHashSection(const Elf_Shdr *Shdr) { in dumpGnuHashSection()
1339 ELFDumper<ELFT>::dumpVerdefSection(const Elf_Shdr *Shdr) { in dumpVerdefSection()
1398 ELFDumper<ELFT>::dumpSymverSection(const Elf_Shdr *Shdr) { in dumpSymverSection()
1416 ELFDumper<ELFT>::dumpVerneedSection(const Elf_Shdr *Shdr) { in dumpVerneedSection()
1478 const Elf_Shdr *Symtab = *SymtabOrErr; in getSymbolName()
1491 ELFDumper<ELFT>::dumpGroupSection(const Elf_Shdr *Shdr) { in dumpGroupSection()
1513 Expected<const Elf_Shdr *> SHdrOrErr = Obj.getSection(Member); in dumpGroupSection()
1526 ELFDumper<ELFT>::dumpARMIndexTableSection(const Elf_Shdr *Shdr) { in dumpARMIndexTableSection()
1553 ELFDumper<ELFT>::dumpMipsABIFlags(const Elf_Shdr *Shdr) { in dumpMipsABIFlags()