Home
last modified time | relevance | path

Searched refs:Elf_Shdr (Results 1 – 4 of 4) sorted by relevance

/art/libelffile/elf/
Delf_debug_reader.h39 typedef typename ElfTypes::Shdr ALIGNED(1) Elf_Shdr; typedef
69 CHECK_EQ(header_->e_shentsize, sizeof(Elf_Shdr)); in ElfDebugReader()
72 sections_ = Read<Elf_Shdr>(header_->e_shoff, header_->e_shnum); in ElfDebugReader()
73 for (const Elf_Shdr& section : sections_) { in ElfDebugReader()
79 const Elf_Shdr* gnu_debugdata = section_map_[".gnu_debugdata"]; in ElfDebugReader()
93 ArrayRef<Elf_Shdr> GetSections() { return sections_; } in GetSections()
95 const Elf_Shdr* GetSection(const char* name) { return section_map_[name]; } in GetSection()
99 const Elf_Shdr* symtab = GetSection(".symtab"); in VisitFunctionSymbols()
100 const Elf_Shdr* strtab = GetSection(".strtab"); in VisitFunctionSymbols()
101 const Elf_Shdr* text = GetSection(".text"); in VisitFunctionSymbols()
[all …]
Delf_builder.h82 using Elf_Shdr = typename ElfTypes::Shdr; variable
214 Elf_Shdr header_;
551 std::vector<Elf_Shdr> shdrs; in End()
553 shdrs.push_back(Elf_Shdr()); // NULL at index 0. in End()
851 elf_header.e_shentsize = sizeof(Elf_Shdr); in MakeElfHeader()
880 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()
911 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()
/art/runtime/
Delf_file_impl.h39 using Elf_Shdr = typename ElfTypes::Shdr; variable
80 Elf_Shdr* GetSectionHeader(Elf_Word) const;
81 Elf_Shdr* FindSectionByType(Elf_Word type) const;
82 Elf_Shdr* FindSectionByName(const std::string& name) const;
84 Elf_Shdr* GetSectionNameStringSection() const;
90 Elf_Word GetSymbolNum(Elf_Shdr&) const;
100 const char* GetString(Elf_Shdr&, Elf_Word) const;
105 Elf_Word GetRelNum(Elf_Shdr&) const;
106 Elf_Rel& GetRel(Elf_Shdr&, Elf_Word) const;
108 Elf_Word GetRelaNum(Elf_Shdr&) const;
[all …]
Delf_file.cc183 Elf_Shdr* shstrtab_section_header = GetSectionNameStringSection(); in Setup()
205 Elf_Shdr* section_header = GetSectionHeader(i); in Setup()
306 Elf_Shdr* source_section = nullptr; in CheckSectionsLinked()
310 Elf_Shdr* section_header = GetSectionHeader(i); in CheckSectionsLinked()
713 return reinterpret_cast<Elf_Shdr*>(section_header); in GetSectionHeader()
722 Elf_Shdr* section_header = GetSectionHeader(i); in FindSectionByType()
804 typename ElfTypes::Word ElfFileImpl<ElfTypes>::GetSymbolNum(Elf_Shdr& section_header) const { in GetSymbolNum()
849 Elf_Shdr* symbol_section = FindSectionByType(section_type); in FindSymbolByName()
853 Elf_Shdr* string_section = GetSectionHeader(symbol_section->sh_link); in FindSymbolByName()
895 Elf_Shdr* symbol_section = FindSectionByType(section_type); in FindSymbolByName()
[all …]