• Home
  • Raw
  • Download

Lines Matching refs:Obj

29   const object::ELFFile<ELFT> &Obj;  member in __anon0c4f73f70111::ELFDumper
54 : Obj(O) {} in ELFDumper()
61 Y->Header.Class = ELFYAML::ELF_ELFCLASS(Obj.getHeader()->getFileClass()); in dump()
62 Y->Header.Data = ELFYAML::ELF_ELFDATA(Obj.getHeader()->getDataEncoding()); in dump()
63 Y->Header.OSABI = Obj.getHeader()->e_ident[ELF::EI_OSABI]; in dump()
64 Y->Header.Type = Obj.getHeader()->e_type; in dump()
65 Y->Header.Machine = Obj.getHeader()->e_machine; in dump()
66 Y->Header.Flags = Obj.getHeader()->e_flags; in dump()
67 Y->Header.Entry = Obj.getHeader()->e_entry; in dump()
70 for (const Elf_Shdr &Sec : Obj.sections()) { in dump()
110 for (auto SI = Obj.begin_symbols(), SE = Obj.end_symbols(); SI != SE; ++SI) { in dump()
147 ErrorOr<StringRef> NameOrErr = Obj.getSymbolName(Sym); in dumpSymbol()
152 const Elf_Shdr *Shdr = Obj.getSection(&*Sym); in dumpSymbol()
156 NameOrErr = Obj.getSectionName(Shdr); in dumpSymbol()
169 R.Type = Rel->getType(Obj.isMips64EL()); in dumpRelocation()
173 auto NamePair = Obj.getRelocationSymbol(Shdr, Rel); in dumpRelocation()
178 Obj.getSymbolName(NamePair.first, NamePair.second); in dumpRelocation()
194 ErrorOr<StringRef> NameOrErr = Obj.getSectionName(Shdr); in dumpCommonSection()
200 if (const Elf_Shdr *LinkSection = Obj.getSection(Shdr->sh_link)) { in dumpCommonSection()
201 NameOrErr = Obj.getSectionName(LinkSection); in dumpCommonSection()
218 if (const Elf_Shdr *InfoSection = Obj.getSection(Shdr->sh_info)) { in dumpCommonRelocationSection()
219 ErrorOr<StringRef> NameOrErr = Obj.getSectionName(InfoSection); in dumpCommonRelocationSection()
237 for (auto RI = Obj.begin_rel(Shdr), RE = Obj.end_rel(Shdr); RI != RE; in dumpRelSection()
257 for (auto RI = Obj.begin_rela(Shdr), RE = Obj.end_rela(Shdr); RI != RE; in dumpRelaSection()
277 ErrorOr<ArrayRef<uint8_t>> ContentOrErr = Obj.getSectionContents(Shdr); in dumpContentSection()
293 const Elf_Sym *symbol = Obj.getSymbol(Shdr->sh_info); in dumpGroup()
294 const Elf_Shdr *symtab = Obj.getSection(Shdr->sh_link); in dumpGroup()
295 auto sectionContents = Obj.getSectionContents(Shdr); in dumpGroup()
298 ErrorOr<StringRef> symbolName = Obj.getSymbolName(symtab, symbol); in dumpGroup()
310 const Elf_Shdr *sHdr = Obj.getSection(groupMembers[i]); in dumpGroup()
311 ErrorOr<StringRef> sectionName = Obj.getSectionName(sHdr); in dumpGroup()
323 const object::ELFFile<ELFT> &Obj) { in elf2yaml() argument
324 ELFDumper<ELFT> Dumper(Obj); in elf2yaml()
336 std::error_code elf2yaml(raw_ostream &Out, const object::ObjectFile &Obj) { in elf2yaml() argument
337 if (const auto *ELFObj = dyn_cast<object::ELF32LEObjectFile>(&Obj)) in elf2yaml()
340 if (const auto *ELFObj = dyn_cast<object::ELF32BEObjectFile>(&Obj)) in elf2yaml()
343 if (const auto *ELFObj = dyn_cast<object::ELF64LEObjectFile>(&Obj)) in elf2yaml()
346 if (const auto *ELFObj = dyn_cast<object::ELF64BEObjectFile>(&Obj)) in elf2yaml()