Lines Matching defs:ELF
15 #include "llvm/Object/ELF.h"
331 const object::ELFFile<ET> *ELF;
355 PrinterContext(ScopedPrinter &SW, const object::ELFFile<ET> *ELF,
357 : SW(SW), ELF(ELF), FileName(FileName), Symtab(Symtab) {}
371 auto StrTableOrErr = ELF->getStringTableForSymtab(*Symtab);
376 for (const Elf_Sym &Sym : unwrapOrError(FileName, ELF->symbols(Symtab)))
378 Sym.getType() == ELF::STT_FUNC) {
402 for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF->sections())) {
403 if (Sec.sh_type != ELF::SHT_REL || Sec.sh_info != IndexSectionIndex)
406 auto SymTabOrErr = ELF->getSection(Sec.sh_link);
411 for (const Elf_Rel &R : unwrapOrError(FileName, ELF->rels(&Sec))) {
421 unwrapOrError(FileName, ELF->getRelocationSymbol(&RelA, SymTab));
423 auto Ret = ELF->getSection(Symbol, SymTab, ShndxTable);
436 Expected<ArrayRef<uint8_t>> Contents = ELF->getSectionContents(EHT);
503 Expected<ArrayRef<uint8_t>> Contents = ELF->getSectionContents(IT);
557 if (auto Name = ELF->getSectionName(EHT))
574 for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF->sections())) {
575 if (Sec.sh_type == ELF::SHT_ARM_EXIDX) {
579 if (auto SectionName = ELF->getSectionName(&Sec))