Lines Matching refs:Shdr

33   std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
34 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr,
40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
43 dumpContentSection(const Elf_Shdr *Shdr);
44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr);
46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr);
190 const Elf_Shdr *Shdr = *ShdrOrErr;
191 if (!Shdr)
194 ErrorOr<StringRef> NameOrErr = Obj.getSectionName(Shdr);
229 std::error_code ELFDumper<ELFT>::dumpCommonSection(const Elf_Shdr *Shdr,
231 S.Type = Shdr->sh_type;
232 S.Flags = Shdr->sh_flags;
233 S.Address = Shdr->sh_addr;
234 S.AddressAlign = Shdr->sh_addralign;
236 ErrorOr<StringRef> NameOrErr = Obj.getSectionName(Shdr);
241 if (Shdr->sh_link != ELF::SHN_UNDEF) {
242 ErrorOr<const Elf_Shdr *> LinkSection = Obj.getSection(Shdr->sh_link);
256 ELFDumper<ELFT>::dumpCommonRelocationSection(const Elf_Shdr *Shdr,
258 if (std::error_code EC = dumpCommonSection(Shdr, S))
261 ErrorOr<const Elf_Shdr *> InfoSection = Obj.getSection(Shdr->sh_info);
275 ELFDumper<ELFT>::dumpRelSection(const Elf_Shdr *Shdr) {
276 assert(Shdr->sh_type == ELF::SHT_REL && "Section type is not SHT_REL");
279 if (std::error_code EC = dumpCommonRelocationSection(Shdr, *S))
282 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link);
287 for (auto RI = Obj.rel_begin(Shdr), RE = Obj.rel_end(Shdr); RI != RE; ++RI) {
299 ELFDumper<ELFT>::dumpRelaSection(const Elf_Shdr *Shdr) {
300 assert(Shdr->sh_type == ELF::SHT_RELA && "Section type is not SHT_RELA");
303 if (std::error_code EC = dumpCommonRelocationSection(Shdr, *S))
306 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link);
311 for (auto RI = Obj.rela_begin(Shdr), RE = Obj.rela_end(Shdr); RI != RE;
325 ELFDumper<ELFT>::dumpContentSection(const Elf_Shdr *Shdr) {
328 if (std::error_code EC = dumpCommonSection(Shdr, *S))
331 ErrorOr<ArrayRef<uint8_t>> ContentOrErr = Obj.getSectionContents(Shdr);
342 ELFDumper<ELFT>::dumpNoBitsSection(const Elf_Shdr *Shdr) {
345 if (std::error_code EC = dumpCommonSection(Shdr, *S))
347 S->Size = Shdr->sh_size;
353 ErrorOr<ELFYAML::Group *> ELFDumper<ELFT>::dumpGroup(const Elf_Shdr *Shdr) {
356 if (std::error_code EC = dumpCommonSection(Shdr, *S))
359 ErrorOr<const Elf_Shdr *> SymtabOrErr = Obj.getSection(Shdr->sh_link);
363 const Elf_Sym *symbol = Obj.getSymbol(Symtab, Shdr->sh_info);
368 auto sectionContents = Obj.getSectionContents(Shdr);
377 const long count = (Shdr->sh_size) / sizeof(Elf_Word);
398 ELFDumper<ELFT>::dumpMipsABIFlags(const Elf_Shdr *Shdr) {
399 assert(Shdr->sh_type == ELF::SHT_MIPS_ABIFLAGS &&
402 if (std::error_code EC = dumpCommonSection(Shdr, *S))
405 ErrorOr<ArrayRef<uint8_t>> ContentOrErr = Obj.getSectionContents(Shdr);