• Home
  • Raw
  • Download

Lines Matching refs:Elf_Shdr

86   using Elf_Shdr = typename ELFT::Shdr;                                        \
323 std::pair<const Elf_Phdr *, const Elf_Shdr *> findDynamic();
342 const Elf_Shdr *DotSymtabSec = nullptr;
343 const Elf_Shdr *DotDynsymSec = nullptr;
344 const Elf_Shdr *DotCGProfileSec = nullptr;
345 const Elf_Shdr *DotAddrsigSec = nullptr;
349 const Elf_Shdr *SymbolVersionSection = nullptr; // .gnu.version
350 const Elf_Shdr *SymbolVersionNeedSection = nullptr; // .gnu.version_r
351 const Elf_Shdr *SymbolVersionDefSection = nullptr; // .gnu.version_d
359 std::string describe(const Elf_Shdr &Sec) const;
412 const Elf_Shdr *findSectionByName(StringRef Name) const;
414 const Elf_Shdr *getDotSymtabSec() const { return DotSymtabSec; } in getDotSymtabSec()
415 const Elf_Shdr *getDotCGProfileSec() const { return DotCGProfileSec; } in getDotCGProfileSec()
416 const Elf_Shdr *getDotAddrsigSec() const { return DotAddrsigSec; } in getDotAddrsigSec()
427 Expected<ArrayRef<Elf_Versym>> getVersionTable(const Elf_Shdr &Sec,
431 getVersionDefinitions(const Elf_Shdr &Sec) const;
433 getVersionDependencies(const Elf_Shdr &Sec) const;
436 const Elf_Shdr *SymTab) const;
450 std::string ELFDumper<ELFT>::describe(const Elf_Shdr &Sec) const { in describe()
505 ELFDumper<ELFT>::getVersionTable(const Elf_Shdr &Sec, ArrayRef<Elf_Sym> *SymTab, in getVersionTable()
539 ELFDumper<ELFT>::getVersionDefinitions(const Elf_Shdr &Sec) const { in getVersionDefinitions()
624 ELFDumper<ELFT>::getVersionDependencies(const Elf_Shdr &Sec) const { in getVersionDependencies()
709 const Elf_Shdr *SymtabSec = IsDynamic ? DotDynsymSec : DotSymtabSec; in printSymbolsHelper()
771 virtual void printSymtabMessage(const Elf_Shdr *Symtab, size_t Offset, in printSymtabMessage()
778 virtual void printVersionSymbolSection(const Elf_Shdr *Sec) = 0;
779 virtual void printVersionDefinitionSection(const Elf_Shdr *Sec) = 0;
780 virtual void printVersionDependencySection(const Elf_Shdr *Sec) = 0;
790 Optional<const Elf_Shdr *> FunctionSec,
791 const Elf_Shdr &StackSizeSec, DataExtractor Data,
793 void printStackSize(const Relocation<ELFT> &R, const Elf_Shdr &RelocSec,
794 unsigned Ndx, const Elf_Shdr *SymTab,
795 const Elf_Shdr *FunctionSec, const Elf_Shdr &StackSizeSec,
809 function_ref<void(const Elf_Shdr &)> OnSectionStart,
813 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) = 0;
817 const Elf_Shdr &Sec, bool RawRelr,
819 const Elf_Shdr &, const Elf_Shdr *)>
822 void printRelocationsHelper(const Elf_Shdr &Sec);
827 StringRef getPrintableSectionName(const Elf_Shdr &Sec) const;
859 void printSymtabMessage(const Elf_Shdr *Symtab, size_t Offset,
863 void printVersionSymbolSection(const Elf_Shdr *Sec) override;
864 void printVersionDefinitionSection(const Elf_Shdr *Sec) override;
865 void printVersionDependencySection(const Elf_Shdr *Sec) override;
937 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) override;
983 void printVersionSymbolSection(const Elf_Shdr *Sec) override;
984 void printVersionDefinitionSection(const Elf_Shdr *Sec) override;
985 void printVersionDependencySection(const Elf_Shdr *Sec) override;
999 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) override;
1115 const Elf_Shdr *SymTab) const { in getRelocationTarget()
1278 Expected<const Elf_Shdr *> SecOrErr = Obj.getSection(SectionIndex); in getSymbolSectionName()
1285 static const typename ELFO::Elf_Shdr *
1288 for (const typename ELFO::Elf_Shdr &Shdr : cantFail(Obj.sections())) in findNotEmptySectionByAddress()
1891 const Elf_Shdr *DynamicSec = nullptr; in findDynamic()
1892 for (const Elf_Shdr &Sec : cantFail(Obj.sections())) { in findDynamic()
1932 const Elf_Shdr *DynamicSec; in loadDynamicTable()
2027 for (const Elf_Shdr &Sec : Sections) { in ELFDumper()
2436 for (const Elf_Shdr &Shdr : cantFail(Obj.sections())) { in findSectionByName()
2894 for (const Elf_Shdr &Sec : cantFail(Obj.sections())) { in printAttributes()
2966 const Elf_Shdr *getPltSymTable() const { return PltSymTable; } in getPltSymTable()
2969 const Elf_Shdr *GotSec;
2973 const Elf_Shdr *PltSec;
2974 const Elf_Shdr *PltRelSec;
2975 const Elf_Shdr *PltSymTable;
3110 if (Expected<const Elf_Shdr *> PltSymTableOrErr = in findPLT()
3321 const Elf_Shdr *RegInfoSec = findSectionByName(".reginfo"); in printMipsReginfo()
3385 const Elf_Shdr *MipsOpts = findSectionByName(".MIPS.options"); in printMipsOptions()
3422 const Elf_Shdr *StackMapSection = findSectionByName(".llvm_stackmaps"); in printStackMap()
3569 const Elf_Shdr &Symtab) -> StringRef { in getGroups()
3593 for (const Elf_Shdr &Sec : cantFail(Obj.sections())) { in getGroups()
3599 if (Expected<const Elf_Shdr *> SymtabOrErr = Obj.getSection(Sec.sh_link)) { in getGroups()
3641 if (Expected<const Elf_Shdr *> SecOrErr = Obj.getSection(Ndx)) { in getGroups()
3692 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) { in printReloc()
3786 auto GetEntriesNum = [&](const Elf_Shdr &Sec) -> Expected<size_t> { in printRelocations()
3810 for (const Elf_Shdr &Sec : cantFail(this->Obj.sections())) { in printRelocations()
3889 ArrayRef<Elf_Shdr> Sections = cantFail(this->Obj.sections()); in printSectionHeaders()
3911 for (const Elf_Shdr &Sec : Sections) { in printSectionHeaders()
3949 void GNUStyle<ELFT>::printSymtabMessage(const Elf_Shdr *Symtab, size_t Entries, in printSymtabMessage()
4234 ArrayRef<Elf_Shdr> Sections = cantFail(this->Obj.sections()); in printSectionDetails()
4269 for (const Elf_Shdr &S : Sections) { in printSectionDetails()
4505 DenseSet<const Elf_Shdr *> BelongsToSegment; in printSectionMapping()
4520 for (const Elf_Shdr &Sec : cantFail(this->Obj.sections())) { in printSectionMapping()
4541 for (const Elf_Shdr &Sec : cantFail(this->Obj.sections())) { in printSectionMapping()
4649 void DumpStyle<ELFT>::printRelocationsHelper(const Elf_Shdr &Sec) { in printRelocationsHelper()
4652 [&](const Relocation<ELFT> &R, unsigned Ndx, const Elf_Shdr &Sec, in printRelocationsHelper()
4653 const Elf_Shdr *SymTab) { printReloc(R, Ndx, Sec, SymTab); }, in printRelocationsHelper()
4719 void GNUStyle<ELFT>::printVersionSymbolSection(const Elf_Shdr *Sec) { in printVersionSymbolSection()
4792 void GNUStyle<ELFT>::printVersionDefinitionSection(const Elf_Shdr *Sec) { in printVersionDefinitionSection()
4819 void GNUStyle<ELFT>::printVersionDependencySection(const Elf_Shdr *Sec) { in printVersionDependencySection()
5010 const Elf_Shdr *Sec = this->dumper().getDotAddrsigSec(); in printAddrsig()
5661 function_ref<void(const Elf_Shdr &)> OnSectionStart, in printDependentLibsHelper()
5669 for (const Elf_Shdr &Shdr : cantFail(Obj.sections())) { in printDependentLibsHelper()
5698 const Elf_Shdr &Sec, bool RawRelr, in forEachRelocationDo() argument
5700 const Elf_Shdr &, const Elf_Shdr *)> in forEachRelocationDo()
5712 const Elf_Shdr *SymTab; in forEachRelocationDo()
5714 Expected<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Sec.sh_link); in forEachRelocationDo()
5772 StringRef DumpStyle<ELFT>::getPrintableSectionName(const Elf_Shdr &Sec) const { in getPrintableSectionName()
5803 auto OnSectionStart = [&](const Elf_Shdr &Shdr) { in printDependentLibs()
5821 uint64_t SymValue, Optional<const Elf_Shdr *> FunctionSec, in printFunctionStackSize()
5822 const Elf_Shdr &StackSizeSec, DataExtractor Data, uint64_t *Offset) { in printFunctionStackSize()
5824 if (const Elf_Shdr *SymTab = this->dumper().getDotSymtabSec()) { in printFunctionStackSize()
5847 if (Expected<const Elf_Shdr *> SecOrErr = in printFunctionStackSize()
5902 const Elf_Shdr &RelocSec, unsigned Ndx, in printStackSize()
5903 const Elf_Shdr *SymTab, in printStackSize()
5904 const Elf_Shdr *FunctionSec, in printStackSize()
5905 const Elf_Shdr &StackSizeSec, in printStackSize()
5922 Expected<const Elf_Shdr *> SectionOrErr = in printStackSize()
5960 for (const Elf_Shdr &Sec : cantFail(Obj.sections())) { in printNonRelocatableStackSizes()
5989 llvm::MapVector<const Elf_Shdr *, const Elf_Shdr *> StackSizeRelocMap; in printRelocatableStackSizes()
5990 for (const Elf_Shdr &Sec : cantFail(Obj.sections())) { in printRelocatableStackSizes()
6001 .insert(std::make_pair(&Sec, (const Elf_Shdr *)nullptr)) in printRelocatableStackSizes()
6010 Expected<const Elf_Shdr *> RelSecOrErr = Obj.getSection(Sec.sh_info); in printRelocatableStackSizes()
6018 const Elf_Shdr *ContentsSec = *RelSecOrErr; in printRelocatableStackSizes()
6028 const Elf_Shdr *StackSizesELFSec = StackSizeMapEntry.first; in printRelocatableStackSizes()
6029 const Elf_Shdr *RelocSec = StackSizeMapEntry.second; in printRelocatableStackSizes()
6044 const Elf_Shdr *FunctionSec = unwrapOrError( in printRelocatableStackSizes()
6056 [&](const Relocation<ELFT> &R, unsigned Ndx, const Elf_Shdr &Sec, in printRelocatableStackSizes()
6057 const Elf_Shdr *SymTab) { in printRelocatableStackSizes()
6371 for (const Elf_Shdr &Sec : cantFail(this->Obj.sections())) { in printRelocations()
6391 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) { in printReloc()
6431 for (const Elf_Shdr &Sec : cantFail(this->Obj.sections())) { in printSectionHeaders()
6455 if (const Elf_Shdr *Symtab = this->dumper().getDotSymtabSec()) { in printSectionHeaders()
6462 const Elf_Shdr *SymSec = unwrapOrError( in printSectionHeaders()
6670 void LLVMStyle<ELFT>::printVersionSymbolSection(const Elf_Shdr *Sec) { in printVersionSymbolSection()
6701 void LLVMStyle<ELFT>::printVersionDefinitionSection(const Elf_Shdr *Sec) { in printVersionDefinitionSection()
6726 void LLVMStyle<ELFT>::printVersionDependencySection(const Elf_Shdr *Sec) { in printVersionDependencySection()
6785 const Elf_Shdr *Sec = this->dumper().getDotAddrsigSec(); in printAddrsig()
6910 for (const Elf_Shdr &Shdr : cantFail(this->Obj.sections())) { in printELFLinkerOptions()
6953 [](const Elf_Shdr &) {}, in printDependentLibs() argument