Lines Matching refs:Obj

43   ELFDumper(const ELFFile<ELFT> *Obj, StreamWriter &Writer)
44 : ObjDumper(Writer), Obj(Obj) {}
70 const ELFO *Obj;
86 static std::error_code createELFDumper(const ELFFile<ELFT> *Obj,
89 Result.reset(new ELFDumper<ELFT>(Obj, Writer));
93 std::error_code createELFDumper(const object::ObjectFile *Obj,
97 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj))
101 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj))
105 if (const ELF64LEObjectFile *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj))
109 if (const ELF64BEObjectFile *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj))
118 static std::string getFullSymbolName(const ELFO &Obj,
120 StringRef SymbolName = errorOrDefault(Obj.getSymbolName(Symbol));
128 Obj.getSymbolVersion(nullptr, &*Symbol, IsDefault);
139 getSectionNameIndex(const ELFO &Obj, typename ELFO::Elf_Sym_Iter Symbol,
156 SectionIndex = Obj.getSymbolTableIndex(&*Symbol);
159 const typename ELFO::Elf_Shdr *Sec = Obj.getSection(SectionIndex);
160 SectionName = errorOrDefault(Obj.getSectionName(Sec));
166 findSectionByAddress(const ELFFile<ELFT> *Obj, uint64_t Addr) {
167 for (const auto &Shdr : Obj->sections())
524 const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
568 for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
569 SecE = Obj->end_sections();
574 StringRef Name = errorOrDefault(Obj->getSectionName(Section));
580 getElfSectionType(Obj->getHeader()->e_machine, Section->sh_type),
598 for (typename ELFO::Elf_Sym_Iter SymI = Obj->begin_symbols(),
599 SymE = Obj->end_symbols();
601 if (Obj->getSection(&*SymI) == Section)
607 ArrayRef<uint8_t> Data = errorOrDefault(Obj->getSectionContents(Section));
619 for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
620 SecE = Obj->end_sections();
627 StringRef Name = errorOrDefault(Obj->getSectionName(&*SecI));
643 for (typename ELFO::Elf_Rel_Iter RI = Obj->begin_rel(Sec),
644 RE = Obj->end_rel(Sec);
654 for (typename ELFO::Elf_Rela_Iter RI = Obj->begin_rela(Sec),
655 RE = Obj->end_rela(Sec);
667 Obj->getRelocationTypeName(Rel.getType(Obj->isMips64EL()), RelocName);
670 Obj->getRelocationSymbol(Sec, &Rel);
672 SymbolName = errorOrDefault(Obj->getSymbolName(Sym.first, Sym.second));
677 W.printNumber("Type", RelocName, (int)Rel.getType(Obj->isMips64EL()));
693 for (typename ELFO::Elf_Sym_Iter SymI = Obj->begin_symbols(),
694 SymE = Obj->end_symbols();
704 for (typename ELFO::Elf_Sym_Iter SymI = Obj->begin_dynamic_symbols(),
705 SymE = Obj->end_dynamic_symbols();
715 getSectionNameIndex(*Obj, Symbol, SectionName, SectionIndex);
716 std::string FullSymbolName = getFullSymbolName(*Obj, Symbol);
921 const unsigned Machine = Obj->getHeader()->e_machine;
923 ARM::EHABI::PrinterContext<ELFType<support::little, 2, false> > Ctx(W, Obj);
932 auto DynTable = Obj->dynamic_table(true);
951 printValue(Obj, Entry.getTag(), Entry.getVal(), Is64, OS);
965 for (const auto &Entry : Obj->dynamic_table())
967 Libs.push_back(Obj->getDynamicString(Entry.d_un.d_val));
980 for (typename ELFO::Elf_Phdr_Iter PI = Obj->begin_program_headers(),
981 PE = Obj->end_program_headers();
985 getElfSegmentType(Obj->getHeader()->e_machine, PI->p_type),
1005 if (Obj->getHeader()->e_machine != EM_ARM) {
1011 for (ELFO::Elf_Shdr_Iter SI = Obj->begin_sections(), SE = Obj->end_sections();
1016 ErrorOr<ArrayRef<uint8_t> > Contents = Obj->getSectionContents(&(*SI));
1041 MipsGOTParser(const ObjectFile *Obj, StreamWriter &W) : Obj(Obj), W(W) {}
1051 const ObjectFile *Obj;
1070 ErrorOr<ArrayRef<uint8_t>> GOT = Obj->getSectionContents(&GOTShdr);
1086 Elf_Sym_Iter DynSymBegin = Obj->begin_dynamic_symbols();
1087 Elf_Sym_Iter DynSymEnd = Obj->end_dynamic_symbols();
1162 for (const auto &Entry : Obj->dynamic_table()) {
1207 getSectionNameIndex(*Obj, Sym, SectionName, SectionIndex);
1210 std::string FullSymbolName = getFullSymbolName(*Obj, Sym);
1215 if (Obj->getHeader()->e_machine != EM_MIPS) {
1221 for (const auto &Entry : Obj->dynamic_table()) {
1233 const Elf_Shdr *GotShdr = findSectionByAddress(Obj, *DtPltGot);
1239 MipsGOTParser<ELFT>(Obj, W).parseGOT(*GotShdr);