Lines Matching refs:Elf_Shdr
44 typedef Elf_Shdr_Impl<ELFT> Elf_Shdr; typedef
75 const Elf_Shdr *SectionHeaderTable = nullptr;
82 const T *getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
84 ErrorOr<StringRef> getStringTable(const Elf_Shdr *Section) const;
85 ErrorOr<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
87 ErrorOr<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
89 void VerifyStrTab(const Elf_Shdr *sh) const;
97 const Elf_Shdr *SymTab) const;
114 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const { in symbol_begin()
121 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const { in symbol_end()
129 Elf_Sym_Range symbols(const Elf_Shdr *Sec) const { in symbols()
133 const Elf_Rela *rela_begin(const Elf_Shdr *sec) const { in rela_begin()
139 const Elf_Rela *rela_end(const Elf_Shdr *sec) const { in rela_end()
146 Elf_Rela_Range relas(const Elf_Shdr *Sec) const { in relas()
150 const Elf_Rel *rel_begin(const Elf_Shdr *sec) const { in rel_begin()
156 const Elf_Rel *rel_end(const Elf_Shdr *sec) const { in rel_end()
163 Elf_Rel_Range rels(const Elf_Shdr *Sec) const { in rels()
185 const Elf_Shdr *SymTab,
191 ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
192 const Elf_Shdr *SymTab,
194 ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const;
196 const Elf_Sym *getSymbol(const Elf_Shdr *Sec, uint32_t Index) const { in getSymbol()
200 ErrorOr<StringRef> getSectionName(const Elf_Shdr *Section) const;
202 ErrorOr<ArrayRef<T>> getSectionContentsAsArray(const Elf_Shdr *Sec) const;
203 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const;
213 const Elf_Sym *Sym, const Elf_Shdr *SymTab, in getExtendedSymbolTableIndex()
230 ErrorOr<const typename ELFFile<ELFT>::Elf_Shdr *>
231 ELFFile<ELFT>::getSection(const Elf_Sym *Sym, const Elf_Shdr *SymTab, in getSection()
245 ELFFile<ELFT>::getSectionContentsAsArray(const Elf_Shdr *Sec) const { in getSectionContentsAsArray()
260 ELFFile<ELFT>::getSectionContents(const Elf_Shdr *Sec) const { in getSectionContents()
303 const Elf_Shdr *SymTab) const { in getRelocationSymbol()
349 if (SectionTableOffset + sizeof(Elf_Shdr) > FileSize) { in ELFFile()
357 reinterpret_cast<const Elf_Shdr *>(base() + SectionTableOffset); in ELFFile()
369 ErrorOr<const Elf_Shdr *> StrTabSecOrErr = getSection(StringTableIndex); in ELFFile()
390 if (Header->e_shentsize != sizeof(Elf_Shdr)) in sections()
392 auto *Begin = reinterpret_cast<const Elf_Shdr *>(base() + Header->e_shoff); in sections()
399 ErrorOr<const Elf_Shdr *> Sec = getSection(Section); in getEntry()
407 const T *ELFFile<ELFT>::getEntry(const Elf_Shdr *Section, in getEntry()
414 ErrorOr<const typename ELFFile<ELFT>::Elf_Shdr *>
420 return reinterpret_cast<const Elf_Shdr *>( in getSection()
427 ELFFile<ELFT>::getStringTable(const Elf_Shdr *Section) const { in getStringTable()
442 ELFFile<ELFT>::getSHNDXTable(const Elf_Shdr &Section) const { in getSHNDXTable()
453 ErrorOr<const Elf_Shdr *> SymTableOrErr = getSection(Section.sh_link); in getSHNDXTable()
456 const Elf_Shdr &SymTable = **SymTableOrErr; in getSHNDXTable()
467 ELFFile<ELFT>::getStringTableForSymtab(const Elf_Shdr &Sec) const { in getStringTableForSymtab()
470 ErrorOr<const Elf_Shdr *> SectionOrErr = getSection(Sec.sh_link); in getStringTableForSymtab()
478 ELFFile<ELFT>::getSectionName(const Elf_Shdr *Section) const { in getSectionName()