Lines Matching refs:ELFT

225 template <class ELFT> class ELFObjectFile : public ELFObjectFileBase {
231 LLVM_ELF_IMPORT_TYPES_ELFT(ELFT)
233 using uintX_t = typename ELFT::uint;
235 using Elf_Sym = typename ELFT::Sym;
236 using Elf_Shdr = typename ELFT::Shdr;
237 using Elf_Ehdr = typename ELFT::Ehdr;
238 using Elf_Rel = typename ELFT::Rel;
239 using Elf_Rela = typename ELFT::Rela;
240 using Elf_Dyn = typename ELFT::Dyn;
247 ELFObjectFile(MemoryBufferRef Object, ELFFile<ELFT> EF,
252 ELFFile<ELFT> EF;
385 if (Error E = Attributes.parse(Contents, ELFT::TargetEndianness)) in getBuildAttributes()
399 ELFObjectFile(ELFObjectFile<ELFT> &&Other);
400 static Expected<ELFObjectFile<ELFT>> create(MemoryBufferRef Object);
434 const ELFFile<ELFT> *getELFFile() const { return &EF; } in getELFFile()
438 return v->getType() == getELFType(ELFT::TargetEndianness == support::little, in classof()
439 ELFT::Is64Bits); in classof()
452 template <class ELFT>
453 void ELFObjectFile<ELFT>::moveSymbolNext(DataRefImpl &Sym) const { in moveSymbolNext()
457 template <class ELFT>
458 Expected<StringRef> ELFObjectFile<ELFT>::getSymbolName(DataRefImpl Sym) const { in getSymbolName()
485 template <class ELFT>
486 uint64_t ELFObjectFile<ELFT>::getSectionFlags(DataRefImpl Sec) const { in getSectionFlags()
490 template <class ELFT>
491 uint32_t ELFObjectFile<ELFT>::getSectionType(DataRefImpl Sec) const { in getSectionType()
495 template <class ELFT>
496 uint64_t ELFObjectFile<ELFT>::getSectionOffset(DataRefImpl Sec) const { in getSectionOffset()
500 template <class ELFT>
501 uint64_t ELFObjectFile<ELFT>::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
516 template <class ELFT>
518 ELFObjectFile<ELFT>::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
551 template <class ELFT>
552 uint32_t ELFObjectFile<ELFT>::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
559 template <class ELFT>
560 uint16_t ELFObjectFile<ELFT>::getEMachine() const { in getEMachine()
564 template <class ELFT> uint16_t ELFObjectFile<ELFT>::getEType() const { in getEType()
568 template <class ELFT>
569 uint64_t ELFObjectFile<ELFT>::getSymbolSize(DataRefImpl Sym) const { in getSymbolSize()
573 template <class ELFT>
574 uint64_t ELFObjectFile<ELFT>::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
578 template <class ELFT>
579 uint8_t ELFObjectFile<ELFT>::getSymbolBinding(DataRefImpl Symb) const { in getSymbolBinding()
583 template <class ELFT>
584 uint8_t ELFObjectFile<ELFT>::getSymbolOther(DataRefImpl Symb) const { in getSymbolOther()
588 template <class ELFT>
589 uint8_t ELFObjectFile<ELFT>::getSymbolELFType(DataRefImpl Symb) const { in getSymbolELFType()
593 template <class ELFT>
595 ELFObjectFile<ELFT>::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
616 template <class ELFT>
617 Expected<uint32_t> ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Sym) const { in getSymbolFlags()
634 if (Expected<typename ELFT::SymRange> SymbolsOrErr = in getSymbolFlags()
643 if (Expected<typename ELFT::SymRange> SymbolsOrErr = in getSymbolFlags()
681 template <class ELFT>
683 ELFObjectFile<ELFT>::getSymbolSection(const Elf_Sym *ESym, in getSymbolSection()
698 template <class ELFT>
700 ELFObjectFile<ELFT>::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
709 template <class ELFT>
710 void ELFObjectFile<ELFT>::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext()
715 template <class ELFT>
716 Expected<StringRef> ELFObjectFile<ELFT>::getSectionName(DataRefImpl Sec) const { in getSectionName()
720 template <class ELFT>
721 uint64_t ELFObjectFile<ELFT>::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
725 template <class ELFT>
726 uint64_t ELFObjectFile<ELFT>::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
736 template <class ELFT>
737 uint64_t ELFObjectFile<ELFT>::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
741 template <class ELFT>
743 ELFObjectFile<ELFT>::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
755 template <class ELFT>
756 uint64_t ELFObjectFile<ELFT>::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
760 template <class ELFT>
761 bool ELFObjectFile<ELFT>::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
765 template <class ELFT>
766 bool ELFObjectFile<ELFT>::isSectionText(DataRefImpl Sec) const { in isSectionText()
770 template <class ELFT>
771 bool ELFObjectFile<ELFT>::isSectionData(DataRefImpl Sec) const { in isSectionData()
778 template <class ELFT>
779 bool ELFObjectFile<ELFT>::isSectionBSS(DataRefImpl Sec) const { in isSectionBSS()
785 template <class ELFT>
787 ELFObjectFile<ELFT>::dynamic_relocation_sections() const { in dynamic_relocation_sections()
814 template <class ELFT>
815 bool ELFObjectFile<ELFT>::isSectionVirtual(DataRefImpl Sec) const { in isSectionVirtual()
819 template <class ELFT>
820 bool ELFObjectFile<ELFT>::isBerkeleyText(DataRefImpl Sec) const { in isBerkeleyText()
826 template <class ELFT>
827 bool ELFObjectFile<ELFT>::isBerkeleyData(DataRefImpl Sec) const { in isBerkeleyData()
833 template <class ELFT>
834 bool ELFObjectFile<ELFT>::isDebugSection(StringRef SectionName) const { in isDebugSection()
839 template <class ELFT>
841 ELFObjectFile<ELFT>::section_rel_begin(DataRefImpl Sec) const { in section_rel_begin()
852 template <class ELFT>
854 ELFObjectFile<ELFT>::section_rel_end(DataRefImpl Sec) const { in section_rel_end()
871 template <class ELFT>
873 ELFObjectFile<ELFT>::getRelocatedSection(DataRefImpl Sec) const { in getRelocatedSection()
889 template <class ELFT>
890 void ELFObjectFile<ELFT>::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
894 template <class ELFT>
896 ELFObjectFile<ELFT>::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
913 template <class ELFT>
914 uint64_t ELFObjectFile<ELFT>::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset()
922 template <class ELFT>
923 uint64_t ELFObjectFile<ELFT>::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
931 template <class ELFT>
932 StringRef ELFObjectFile<ELFT>::getRelocationTypeName(uint32_t Type) const { in getRelocationTypeName()
936 template <class ELFT>
937 void ELFObjectFile<ELFT>::getRelocationTypeName( in getRelocationTypeName()
943 template <class ELFT>
945 ELFObjectFile<ELFT>::getRelocationAddend(DataRefImpl Rel) const { in getRelocationAddend()
951 template <class ELFT>
952 const typename ELFObjectFile<ELFT>::Elf_Rel *
953 ELFObjectFile<ELFT>::getRel(DataRefImpl Rel) const { in getRel()
961 template <class ELFT>
962 const typename ELFObjectFile<ELFT>::Elf_Rela *
963 ELFObjectFile<ELFT>::getRela(DataRefImpl Rela) const { in getRela()
971 template <class ELFT>
972 Expected<ELFObjectFile<ELFT>>
973 ELFObjectFile<ELFT>::create(MemoryBufferRef Object) { in create()
974 auto EFOrErr = ELFFile<ELFT>::create(Object.getBuffer()); in create()
1007 return ELFObjectFile<ELFT>(Object, EF, DotDynSymSec, DotSymtabSec, in create()
1011 template <class ELFT>
1012 ELFObjectFile<ELFT>::ELFObjectFile(MemoryBufferRef Object, ELFFile<ELFT> EF, in ELFObjectFile()
1017 getELFType(ELFT::TargetEndianness == support::little, ELFT::Is64Bits), in ELFObjectFile()
1022 template <class ELFT>
1023 ELFObjectFile<ELFT>::ELFObjectFile(ELFObjectFile<ELFT> &&Other) in ELFObjectFile()
1027 template <class ELFT>
1028 basic_symbol_iterator ELFObjectFile<ELFT>::symbol_begin() const { in symbol_begin()
1035 template <class ELFT>
1036 basic_symbol_iterator ELFObjectFile<ELFT>::symbol_end() const { in symbol_end()
1044 template <class ELFT>
1045 elf_symbol_iterator ELFObjectFile<ELFT>::dynamic_symbol_begin() const { in dynamic_symbol_begin()
1054 template <class ELFT>
1055 elf_symbol_iterator ELFObjectFile<ELFT>::dynamic_symbol_end() const { in dynamic_symbol_end()
1063 template <class ELFT>
1064 section_iterator ELFObjectFile<ELFT>::section_begin() const { in section_begin()
1071 template <class ELFT>
1072 section_iterator ELFObjectFile<ELFT>::section_end() const { in section_end()
1079 template <class ELFT>
1080 uint8_t ELFObjectFile<ELFT>::getBytesInAddress() const { in getBytesInAddress()
1081 return ELFT::Is64Bits ? 8 : 4; in getBytesInAddress()
1084 template <class ELFT>
1085 StringRef ELFObjectFile<ELFT>::getFileFormatName() const { in getFileFormatName()
1086 bool IsLittleEndian = ELFT::TargetEndianness == support::little; in getFileFormatName()
1153 template <class ELFT> Triple::ArchType ELFObjectFile<ELFT>::getArch() const { in getArch()
1154 bool IsLittleEndian = ELFT::TargetEndianness == support::little; in getArch()
1229 template <class ELFT>
1230 Expected<uint64_t> ELFObjectFile<ELFT>::getStartAddress() const { in getStartAddress()
1234 template <class ELFT>
1236 ELFObjectFile<ELFT>::getDynamicSymbolIterators() const { in getDynamicSymbolIterators()
1240 template <class ELFT> bool ELFObjectFile<ELFT>::isRelocatableObject() const { in isRelocatableObject()