Lines Matching refs:ELFT

27 template <class ELFT>
28 static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> &Elf) { in getDynamicStrTab()
33 for (const typename ELFT::Dyn &Dyn : *DynamicEntriesOrError) { in getDynamicStrTab()
47 for (const typename ELFT::Shdr &Sec : *SectionsOrError) { in getDynamicStrTab()
55 template <class ELFT>
56 static Error getRelocationValueString(const ELFObjectFile<ELFT> *Obj, in getRelocationValueString()
59 const ELFFile<ELFT> &EF = Obj->getELFFile(); in getRelocationValueString()
74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString()
91 Expected<const typename ELFT::Sym *> SymOrErr = in getRelocationValueString()
101 const typename ELFT::Shdr *SymSec = in getRelocationValueString()
143 template <class ELFT>
144 static uint64_t getSectionLMA(const ELFFile<ELFT> &Obj, in getSectionLMA()
152 for (const typename ELFT::Phdr &Phdr : *PhdrRangeOrErr) in getSectionLMA()
172 template <class ELFT>
173 static void printDynamicSection(const ELFFile<ELFT> &Elf, StringRef Filename) { in printDynamicSection()
179 ArrayRef<typename ELFT::Dyn> DynamicEntries = *DynamicEntriesOrErr; in printDynamicSection()
183 for (const typename ELFT::Dyn &Dyn : DynamicEntries) in printDynamicSection()
188 for (const typename ELFT::Dyn &Dyn : DynamicEntries) { in printDynamicSection()
196 ELFT::Is64Bits ? "0x%016" PRIx64 "\n" : "0x%08" PRIx64 "\n"; in printDynamicSection()
213 template <class ELFT>
214 static void printProgramHeaders(const ELFFile<ELFT> &Obj, StringRef FileName) { in printProgramHeaders()
224 for (const typename ELFT::Phdr &Phdr : *ProgramHeaderOrError) { in printProgramHeaders()
269 const char *Fmt = ELFT::Is64Bits ? "0x%016" PRIx64 " " : "0x%08" PRIx64 " "; in printProgramHeaders()
284 template <class ELFT>
286 const ELFFile<ELFT> &Obj, in printSymbolVersionDependency()
287 const typename ELFT::Shdr &Sec) { in printSymbolVersionDependency()
310 template <class ELFT>
311 static void printSymbolVersionDefinition(const typename ELFT::Shdr &Shdr, in printSymbolVersionDefinition()
323 auto *Verdef = reinterpret_cast<const typename ELFT::Verdef *>(Buf); in printSymbolVersionDefinition()
331 auto *Verdaux = reinterpret_cast<const typename ELFT::Verdaux *>(BufAux); in printSymbolVersionDefinition()
342 template <class ELFT>
343 static void printSymbolVersionInfo(const ELFFile<ELFT> &Elf, in printSymbolVersionInfo()
345 ArrayRef<typename ELFT::Shdr> Sections = in printSymbolVersionInfo()
347 for (const typename ELFT::Shdr &Shdr : Sections) { in printSymbolVersionInfo()
354 const typename ELFT::Shdr *StrTabSec = in printSymbolVersionInfo()
359 printSymbolVersionDependency<ELFT>(FileName, Elf, Shdr); in printSymbolVersionInfo()
361 printSymbolVersionDefinition<ELFT>(Shdr, Contents, StrTab); in printSymbolVersionInfo()