Lines Matching refs:ELFT
97 template <class ELFT> class ELFFile;
129 template <class ELFT>
130 std::string getSecIndexForError(const ELFFile<ELFT> &Obj, in getSecIndexForError()
131 const typename ELFT::Shdr &Sec) { in getSecIndexForError()
143 template <class ELFT>
144 static std::string describe(const ELFFile<ELFT> &Obj, in describe()
145 const typename ELFT::Shdr &Sec) { in describe()
153 template <class ELFT>
154 std::string getPhdrIndexForError(const ELFFile<ELFT> &Obj, in getPhdrIndexForError()
155 const typename ELFT::Phdr &Phdr) { in getPhdrIndexForError()
168 template <class ELFT>
169 bool checkSectionOffsets(const typename ELFT::Phdr &Phdr, in checkSectionOffsets()
170 const typename ELFT::Shdr &Sec) { in checkSectionOffsets()
186 template <class ELFT>
187 bool checkSectionVMA(const typename ELFT::Phdr &Phdr, in checkSectionVMA()
188 const typename ELFT::Shdr &Sec) { in checkSectionVMA()
205 template <class ELFT>
206 bool isSectionInSegment(const typename ELFT::Phdr &Phdr, in isSectionInSegment()
207 const typename ELFT::Shdr &Sec) { in isSectionInSegment()
208 return checkSectionOffsets<ELFT>(Phdr, Sec) && in isSectionInSegment()
209 checkSectionVMA<ELFT>(Phdr, Sec); in isSectionInSegment()
253 template <class ELFT>
256 LLVM_ELF_IMPORT_TYPES_ELFT(ELFT)
303 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const;
531 template <class ELFT>
532 inline Expected<const typename ELFT::Shdr *>
533 getSection(typename ELFT::ShdrRange Sections, uint32_t Index) { in getSection()
539 template <class ELFT>
541 getExtendedSymbolTableIndex(const typename ELFT::Sym &Sym, unsigned SymIndex, in getExtendedSymbolTableIndex()
542 DataRegion<typename ELFT::Word> ShndxTable) { in getExtendedSymbolTableIndex()
549 Expected<typename ELFT::Word> TableOrErr = ShndxTable[SymIndex]; in getExtendedSymbolTableIndex()
557 template <class ELFT>
559 ELFFile<ELFT>::getSectionIndex(const Elf_Sym &Sym, Elf_Sym_Range Syms, in getSectionIndex()
564 getExtendedSymbolTableIndex<ELFT>(Sym, &Sym - Syms.begin(), ShndxTable); in getSectionIndex()
574 template <class ELFT>
575 Expected<const typename ELFT::Shdr *>
576 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, const Elf_Shdr *SymTab, in getSection()
584 template <class ELFT>
585 Expected<const typename ELFT::Shdr *>
586 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, Elf_Sym_Range Symbols, in getSection()
597 template <class ELFT>
598 Expected<const typename ELFT::Sym *>
599 ELFFile<ELFT>::getSymbol(const Elf_Shdr *Sec, uint32_t Index) const { in getSymbol()
612 template <class ELFT>
615 ELFFile<ELFT>::getSectionContentsAsArray(const Elf_Shdr &Sec) const { in getSectionContentsAsArray()
649 template <class ELFT>
651 ELFFile<ELFT>::getSegmentContents(const Elf_Phdr &Phdr) const { in getSegmentContents()
669 template <class ELFT>
671 ELFFile<ELFT>::getSectionContents(const Elf_Shdr &Sec) const { in getSectionContents()
675 template <class ELFT>
676 StringRef ELFFile<ELFT>::getRelocationTypeName(uint32_t Type) const { in getRelocationTypeName()
680 template <class ELFT>
681 void ELFFile<ELFT>::getRelocationTypeName(uint32_t Type, in getRelocationTypeName()
711 template <class ELFT>
712 uint32_t ELFFile<ELFT>::getRelativeRelocationType() const { in getRelativeRelocationType()
716 template <class ELFT>
718 ELFFile<ELFT>::loadVersionMap(const Elf_Shdr *VerNeedSec, in loadVersionMap()
753 template <class ELFT>
754 Expected<const typename ELFT::Sym *>
755 ELFFile<ELFT>::getRelocationSymbol(const Elf_Rel &Rel, in getRelocationSymbol()
763 template <class ELFT>
765 ELFFile<ELFT>::getSectionStringTable(Elf_Shdr_Range Sections, in getSectionStringTable()
794 template <class ELFT>
796 getDynSymtabSizeFromGnuHash(const typename ELFT::GnuHash &Table, in getDynSymtabSizeFromGnuHash()
798 using Elf_Word = typename ELFT::Word; in getDynSymtabSizeFromGnuHash()
823 template <class ELFT>
824 Expected<uint64_t> ELFFile<ELFT>::getDynSymtabSize() const { in getDynSymtabSize()
870 return getDynSymtabSizeFromGnuHash<ELFT>(*Table, this->Buf.bytes_end()); in getDynSymtabSize()
884 template <class ELFT> ELFFile<ELFT>::ELFFile(StringRef Object) : Buf(Object) {} in ELFFile()
886 template <class ELFT>
887 Expected<ELFFile<ELFT>> ELFFile<ELFT>::create(StringRef Object) { in create()
898 template <class ELFT> void ELFFile<ELFT>::createFakeSections() { in createFakeSections()
923 template <class ELFT>
924 Expected<typename ELFT::ShdrRange> ELFFile<ELFT>::sections() const { in sections()
975 template <class ELFT>
977 Expected<const T *> ELFFile<ELFT>::getEntry(uint32_t Section, in getEntry()
985 template <class ELFT>
987 Expected<const T *> ELFFile<ELFT>::getEntry(const Elf_Shdr &Section, in getEntry()
1003 template <typename ELFT>
1004 Expected<StringRef> ELFFile<ELFT>::getSymbolVersionByIndex( in getSymbolVersionByIndex()
1031 template <class ELFT>
1033 ELFFile<ELFT>::getVersionDefinitions(const Elf_Shdr &Sec) const { in getVersionDefinitions()
1118 template <class ELFT>
1120 ELFFile<ELFT>::getVersionDependencies(const Elf_Shdr &Sec, in getVersionDependencies()
1206 template <class ELFT>
1207 Expected<const typename ELFT::Shdr *>
1208 ELFFile<ELFT>::getSection(uint32_t Index) const { in getSection()
1212 return object::getSection<ELFT>(*TableOrErr, Index); in getSection()
1215 template <class ELFT>
1217 ELFFile<ELFT>::getStringTable(const Elf_Shdr &Section, in getStringTable()
1241 template <class ELFT>
1242 Expected<ArrayRef<typename ELFT::Word>>
1243 ELFFile<ELFT>::getSHNDXTable(const Elf_Shdr &Section) const { in getSHNDXTable()
1250 template <class ELFT>
1251 Expected<ArrayRef<typename ELFT::Word>>
1252 ELFFile<ELFT>::getSHNDXTable(const Elf_Shdr &Section, in getSHNDXTable()
1259 auto SymTableOrErr = object::getSection<ELFT>(Sections, Section.sh_link); in getSHNDXTable()
1279 template <class ELFT>
1281 ELFFile<ELFT>::getStringTableForSymtab(const Elf_Shdr &Sec) const { in getStringTableForSymtab()
1288 template <class ELFT>
1290 ELFFile<ELFT>::getStringTableForSymtab(const Elf_Shdr &Sec, in getStringTableForSymtab()
1297 object::getSection<ELFT>(Sections, Sec.sh_link); in getStringTableForSymtab()
1303 template <class ELFT>
1305 ELFFile<ELFT>::getLinkAsStrtab(const typename ELFT::Shdr &Sec) const { in getLinkAsStrtab()
1306 Expected<const typename ELFT::Shdr *> StrTabSecOrErr = in getLinkAsStrtab()
1320 template <class ELFT>
1322 ELFFile<ELFT>::getSectionName(const Elf_Shdr &Section, in getSectionName()
1333 template <class ELFT>
1334 Expected<StringRef> ELFFile<ELFT>::getSectionName(const Elf_Shdr &Section, in getSectionName()