Lines Matching defs:EF
57 ELFFile<ELFT> EF;
123 return EF.getSection(Rel.d.a);
133 EF.begin_dynamic_symbols().getEntSize(),
135 return Elf_Sym_Iter(EF.begin_symbols().getEntSize(),
147 return Elf_Shdr_Iter(EF.getHeader()->e_shentsize,
164 return Elf_Dyn_Iter(EF.begin_dynamic_table().getEntSize(),
205 const ELFFile<ELFT> *getELFFile() const { return &EF; }
229 ErrorOr<StringRef> Name = EF.getSymbolName(toELFSymIter(Symb));
243 EF.getSymbolVersion(EF.getSection(Symb.d.b), symb, IsDefault);
254 switch (EF.getSymbolTableIndex(ESym)) {
266 const Elf_Ehdr *Header = EF.getHeader();
274 Result += EF.getSection(ESym)->sh_addr;
345 EIter == EF.begin_symbols() || EIter == EF.begin_dynamic_symbols())
348 if (EF.getSymbolTableIndex(ESym) == ELF::SHN_UNDEF)
352 EF.getSymbolTableIndex(ESym) == ELF::SHN_COMMON)
363 const Elf_Shdr *ESec = EF.getSection(ESym);
382 ErrorOr<StringRef> Name = EF.getSectionName(&*toELFShdrIter(Sec));
484 Result = !Reserved && (&*toELFShdrIter(Sec) == EF.getSection(ESym->st_shndx));
492 uintptr_t SHT = reinterpret_cast<uintptr_t>(EF.begin_sections().get());
493 RelData.d.a = (Sec.p - SHT) / EF.getHeader()->e_shentsize;
502 uintptr_t SHT = reinterpret_cast<uintptr_t>(EF.begin_sections().get());
504 RelData.d.a = (Sec.p - SHT) / EF.getHeader()->e_shentsize;
516 if (EF.getHeader()->e_type != ELF::ET_REL)
524 const Elf_Shdr *R = EF.getSection(EShdr->sh_info);
543 symbolIdx = getRel(Rel)->getSymbol(EF.isMips64EL());
547 symbolIdx = getRela(Rel)->getSymbol(EF.isMips64EL());
554 const Elf_Shdr *SymSec = EF.getSection(sec->sh_link);
561 SymbolData = toDRI(EF.begin_symbols() + symbolIdx);
564 SymbolData = toDRI(EF.begin_dynamic_symbols() + symbolIdx);
576 const Elf_Ehdr *Header = EF.getHeader();
580 const Elf_Shdr *RelocatedSec = EF.getSection(RelocationSec->sh_info);
593 assert(EF.getHeader()->e_type == ELF::ET_REL &&
620 Result = getRel(Rel)->getType(EF.isMips64EL());
624 Result = getRela(Rel)->getType(EF.isMips64EL());
633 return getELFRelocationTypeName(EF.getHeader()->e_machine, Type);
645 type = getRel(Rel)->getType(EF.isMips64EL());
649 type = getRela(Rel)->getType(EF.isMips64EL());
654 EF.getRelocationTypeName(type, Result);
689 type = getRel(Rel)->getType(EF.isMips64EL());
690 symbol_index = getRel(Rel)->getSymbol(EF.isMips64EL());
695 type = getRela(Rel)->getType(EF.isMips64EL());
696 symbol_index = getRela(Rel)->getSymbol(EF.isMips64EL());
702 EF.template getEntry<Elf_Sym>(sec->sh_link, symbol_index);
704 EF.getSymbolName(EF.getSection(sec->sh_link), symb);
707 switch (EF.getHeader()->e_machine) {
766 return EF.template getEntry<Elf_Rel>(Rel.d.a, Rel.d.b);
772 return EF.template getEntry<Elf_Rela>(Rela.d.a, Rela.d.b);
782 EF(Data->getBuffer(), EC) {}
786 return basic_symbol_iterator(SymbolRef(toDRI(EF.begin_symbols()), this));
791 return basic_symbol_iterator(SymbolRef(toDRI(EF.end_symbols()), this));
796 return symbol_iterator(SymbolRef(toDRI(EF.begin_dynamic_symbols()), this));
801 return symbol_iterator(SymbolRef(toDRI(EF.end_dynamic_symbols()), this));
806 return section_iterator(SectionRef(toDRI(EF.begin_sections()), this));
811 return section_iterator(SectionRef(toDRI(EF.end_sections()), this));
816 Elf_Dyn_Iter DI = EF.begin_dynamic_table();
817 Elf_Dyn_Iter DE = EF.end_dynamic_table();
823 return EF.getDynamicString(DI->getVal());
829 Elf_Dyn_Iter DI = EF.begin_dynamic_table();
830 Elf_Dyn_Iter DE = EF.end_dynamic_table();
842 Elf_Dyn_Iter DE = EF.end_dynamic_table();
856 Res = EF.getDynamicString(toELFDynIter(Data)->getVal());
862 return library_iterator(LibraryRef(toDRI(EF.end_dynamic_table()), this));
872 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) {
874 switch (EF.getHeader()->e_machine) {
894 switch (EF.getHeader()->e_machine) {
921 switch (EF.getHeader()->e_machine) {
933 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) {