Lines Matching refs:ElfTypes

39 template <typename ElfTypes>
40 ElfFileImpl<ElfTypes>::ElfFileImpl(File* file, bool writable, bool program_header_only) in ElfFileImpl()
59 template <typename ElfTypes>
60 ElfFileImpl<ElfTypes>* ElfFileImpl<ElfTypes>::Open(File* file, in Open()
65 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file( in Open()
66 new ElfFileImpl<ElfTypes>(file, writable, program_header_only)); in Open()
82 template <typename ElfTypes>
83 ElfFileImpl<ElfTypes>* ElfFileImpl<ElfTypes>::Open(File* file, in Open()
88 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file( in Open()
89 new ElfFileImpl<ElfTypes>(file, (prot & PROT_WRITE) != 0, /* program_header_only= */ false)); in Open()
96 template <typename ElfTypes>
97 bool ElfFileImpl<ElfTypes>::Setup(File* file, in Setup()
279 template <typename ElfTypes>
280 ElfFileImpl<ElfTypes>::~ElfFileImpl() { in ~ElfFileImpl()
285 template <typename ElfTypes>
286 bool ElfFileImpl<ElfTypes>::CheckAndSet(Elf32_Off offset, const char* label, in CheckAndSet()
297 template <typename ElfTypes>
298 bool ElfFileImpl<ElfTypes>::CheckSectionsLinked(const uint8_t* source, in CheckSectionsLinked()
330 template <typename ElfTypes>
331 bool ElfFileImpl<ElfTypes>::CheckSectionsExist(File* file, std::string* error_msg) const { in CheckSectionsExist()
414 template <typename ElfTypes>
415 bool ElfFileImpl<ElfTypes>::SetMap(File* file, MemMap&& map, std::string* error_msg) { in SetMap()
549 template <typename ElfTypes>
550 typename ElfTypes::Ehdr& ElfFileImpl<ElfTypes>::GetHeader() const { in GetHeader()
555 template <typename ElfTypes>
556 uint8_t* ElfFileImpl<ElfTypes>::GetProgramHeadersStart() const { in GetProgramHeadersStart()
561 template <typename ElfTypes>
562 uint8_t* ElfFileImpl<ElfTypes>::GetSectionHeadersStart() const { in GetSectionHeadersStart()
568 template <typename ElfTypes>
569 typename ElfTypes::Phdr& ElfFileImpl<ElfTypes>::GetDynamicProgramHeader() const { in GetDynamicProgramHeader()
574 template <typename ElfTypes>
575 typename ElfTypes::Dyn* ElfFileImpl<ElfTypes>::GetDynamicSectionStart() const { in GetDynamicSectionStart()
580 template <typename ElfTypes>
581 typename ElfTypes::Sym* ElfFileImpl<ElfTypes>::GetSymbolSectionStart( in GetSymbolSectionStart()
600 template <typename ElfTypes>
601 const char* ElfFileImpl<ElfTypes>::GetStringSectionStart( in GetStringSectionStart()
618 template <typename ElfTypes>
619 const char* ElfFileImpl<ElfTypes>::GetString(Elf_Word section_type, in GetString()
635 template <typename ElfTypes>
636 typename ElfTypes::Word* ElfFileImpl<ElfTypes>::GetHashSectionStart() const { in GetHashSectionStart()
640 template <typename ElfTypes>
641 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetHashBucketNum() const { in GetHashBucketNum()
645 template <typename ElfTypes>
646 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetHashChainNum() const { in GetHashChainNum()
650 template <typename ElfTypes>
651 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetHashBucket(size_t i, bool* ok) const { in GetHashBucket()
661 template <typename ElfTypes>
662 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetHashChain(size_t i, bool* ok) const { in GetHashChain()
672 template <typename ElfTypes>
673 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetProgramHeaderNum() const { in GetProgramHeaderNum()
677 template <typename ElfTypes>
678 typename ElfTypes::Phdr* ElfFileImpl<ElfTypes>::GetProgramHeader(Elf_Word i) const { in GetProgramHeader()
685 template <typename ElfTypes>
686 typename ElfTypes::Phdr* ElfFileImpl<ElfTypes>::FindProgamHeaderByType(Elf_Word type) const { in FindProgamHeaderByType()
696 template <typename ElfTypes>
697 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetSectionHeaderNum() const { in GetSectionHeaderNum()
701 template <typename ElfTypes>
702 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::GetSectionHeader(Elf_Word i) const { in GetSectionHeader()
716 template <typename ElfTypes>
717 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::FindSectionByType(Elf_Word type) const { in FindSectionByType()
744 template <typename ElfTypes>
745 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::GetSectionNameStringSection() const { in GetSectionNameStringSection()
749 template <typename ElfTypes>
750 const uint8_t* ElfFileImpl<ElfTypes>::FindDynamicSymbolAddress( in FindDynamicSymbolAddress()
767 template <typename ElfTypes>
768 const typename ElfTypes::Sym* ElfFileImpl<ElfTypes>::FindDynamicSymbol( in FindDynamicSymbol()
798 template <typename ElfTypes>
799 bool ElfFileImpl<ElfTypes>::IsSymbolSectionType(Elf_Word section_type) { in IsSymbolSectionType()
803 template <typename ElfTypes>
804 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetSymbolNum(Elf_Shdr& section_header) const { in GetSymbolNum()
811 template <typename ElfTypes>
812 typename ElfTypes::Sym* ElfFileImpl<ElfTypes>::GetSymbol(Elf_Word section_type, Elf_Word i) const { in GetSymbol()
820 template <typename ElfTypes>
821 typename ElfFileImpl<ElfTypes>::SymbolTable**
822 ElfFileImpl<ElfTypes>::GetSymbolTable(Elf_Word section_type) { in GetSymbolTable()
838 template <typename ElfTypes>
839 typename ElfTypes::Sym* ElfFileImpl<ElfTypes>::FindSymbolByName( in FindSymbolByName()
919 template <typename ElfTypes>
920 typename ElfTypes::Addr ElfFileImpl<ElfTypes>::FindSymbolAddress( in FindSymbolAddress()
929 template <typename ElfTypes>
930 const char* ElfFileImpl<ElfTypes>::GetString(Elf_Shdr& string_section, in GetString()
951 template <typename ElfTypes>
952 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetDynamicNum() const { in GetDynamicNum()
956 template <typename ElfTypes>
957 typename ElfTypes::Dyn& ElfFileImpl<ElfTypes>::GetDynamic(Elf_Word i) const { in GetDynamic()
962 template <typename ElfTypes>
963 typename ElfTypes::Dyn* ElfFileImpl<ElfTypes>::FindDynamicByType(Elf_Sword type) const { in FindDynamicByType()
973 template <typename ElfTypes>
974 typename ElfTypes::Word ElfFileImpl<ElfTypes>::FindDynamicValueByType(Elf_Sword type) const { in FindDynamicValueByType()
983 template <typename ElfTypes>
984 typename ElfTypes::Rel* ElfFileImpl<ElfTypes>::GetRelSectionStart(Elf_Shdr& section_header) const { in GetRelSectionStart()
989 template <typename ElfTypes>
990 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetRelNum(Elf_Shdr& section_header) const { in GetRelNum()
996 template <typename ElfTypes>
997 typename ElfTypes::Rel& ElfFileImpl<ElfTypes>::GetRel(Elf_Shdr& section_header, Elf_Word i) const { in GetRel()
1003 template <typename ElfTypes>
1004 typename ElfTypes::Rela* ElfFileImpl<ElfTypes>::GetRelaSectionStart(Elf_Shdr& section_header) const… in GetRelaSectionStart()
1009 template <typename ElfTypes>
1010 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetRelaNum(Elf_Shdr& section_header) const { in GetRelaNum()
1015 template <typename ElfTypes>
1016 typename ElfTypes::Rela& ElfFileImpl<ElfTypes>::GetRela(Elf_Shdr& section_header, Elf_Word i) const… in GetRela()
1022 template <typename ElfTypes>
1023 bool ElfFileImpl<ElfTypes>::GetLoadedSize(size_t* size, std::string* error_msg) const { in GetLoadedSize()
1029 template <typename ElfTypes>
1030 bool ElfFileImpl<ElfTypes>::GetLoadedAddressRange(/*out*/uint8_t** vaddr_begin, in GetLoadedAddressRange()
1093 template <typename ElfTypes>
1094 bool ElfFileImpl<ElfTypes>::Load(File* file, in Load()
1335 template <typename ElfTypes>
1336 bool ElfFileImpl<ElfTypes>::ValidPointer(const uint8_t* start) const { in ValidPointer()
1346 template <typename ElfTypes>
1347 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::FindSectionByName( in FindSectionByName()
1370 template <typename ElfTypes>
1371 bool ElfFileImpl<ElfTypes>::FixupDebugSections(Elf_Addr base_address_delta) { in FixupDebugSections()
1380 template <typename ElfTypes>
1381 bool ElfFileImpl<ElfTypes>::ApplyOatPatchesTo( in ApplyOatPatchesTo()
1407 template <typename ElfTypes>
1408 void ElfFileImpl<ElfTypes>::ApplyOatPatches( in ApplyOatPatches()
1420 template <typename ElfTypes>
1421 bool ElfFileImpl<ElfTypes>::Strip(File* file, std::string* error_msg) { in Strip()
1524 template <typename ElfTypes>
1525 bool ElfFileImpl<ElfTypes>::Fixup(Elf_Addr base_address) { in Fixup()
1558 template <typename ElfTypes>
1559 bool ElfFileImpl<ElfTypes>::FixupDynamic(Elf_Addr base_address) { in FixupDynamic()
1578 template <typename ElfTypes>
1579 bool ElfFileImpl<ElfTypes>::FixupSectionHeaders(Elf_Addr base_address) { in FixupSectionHeaders()
1598 template <typename ElfTypes>
1599 bool ElfFileImpl<ElfTypes>::FixupProgramHeaders(Elf_Addr base_address) { in FixupProgramHeaders()
1621 template <typename ElfTypes>
1622 bool ElfFileImpl<ElfTypes>::FixupSymbols(Elf_Addr base_address, bool dynamic) { in FixupSymbols()
1647 template <typename ElfTypes>
1648 bool ElfFileImpl<ElfTypes>::FixupRelocations(Elf_Addr base_address) { in FixupRelocations()