Home
last modified time | relevance | path

Searched refs:Elf_Sym (Results 1 – 5 of 5) sorted by relevance

/art/libelffile/elf/
Delf_debug_reader.h40 typedef typename ElfTypes::Sym ALIGNED(1) Elf_Sym; typedef
103 CHECK_EQ(symtab->sh_entsize, sizeof(Elf_Sym)); in VisitFunctionSymbols()
104 size_t count = symtab->sh_size / sizeof(Elf_Sym); in VisitFunctionSymbols()
105 for (const Elf_Sym& symbol : Read<Elf_Sym>(symtab->sh_offset, count)) { in VisitFunctionSymbols()
121 CHECK_EQ(dynsym->sh_entsize, sizeof(Elf_Sym)); in VisitDynamicSymbols()
122 size_t count = dynsym->sh_size / sizeof(Elf_Sym); in VisitDynamicSymbols()
123 for (const Elf_Sym& symbol : Read<Elf_Sym>(dynsym->sh_offset, count)) { in VisitDynamicSymbols()
Delf_builder.h83 using Elf_Sym = typename ElfTypes::Sym; variable
347 sizeof(Elf_Sym)) { in SymbolSection()
348 syms_.push_back(Elf_Sym()); // The symbol table always has to start with NULL symbol. in SymbolSection()
358 Elf_Sym sym = Elf_Sym(); in Add()
368 void Add(Elf_Sym sym, const Section* section) { in Add()
376 Elf_Word GetCacheSize() { return syms_.size() * sizeof(Elf_Sym); } in GetCacheSize()
379 auto is_local = [](const Elf_Sym& sym) { return ELF_ST_BIND(sym.st_info) == STB_LOCAL; }; in WriteCachedSection()
380 auto less_then = [is_local](const Elf_Sym& a, const Elf_Sym b) { in WriteCachedSection()
393 this->WriteFully(&syms_.front(), sizeof(Elf_Sym)); in WriteCachedSection()
399 std::deque<Elf_Sym> syms_; // Buffered/cached content of the whole section.
[all …]
/art/runtime/
Delf_file_impl.h40 using Elf_Sym = typename ElfTypes::Sym; variable
91 Elf_Sym* GetSymbol(Elf_Word section_type, Elf_Word i) const;
150 Elf_Sym* GetSymbolSectionStart(Elf_Word section_type) const;
160 typedef std::map<std::string, Elf_Sym*> SymbolTable;
165 const Elf_Sym* FindDynamicSymbol(const std::string& symbol_name) const;
184 Elf_Sym* FindSymbolByName(Elf_Word section_type,
217 Elf_Sym* symtab_section_start_;
218 Elf_Sym* dynsym_section_start_;
Delf_file.cc757 const Elf_Sym* sym = FindDynamicSymbol(symbol_name); in FindDynamicSymbolAddress()
783 Elf_Sym* symbol = GetSymbol(SHT_DYNSYM, symbol_and_chain_index); in FindDynamicSymbol()
814 Elf_Sym* sym_start = GetSymbolSectionStart(section_type); in GetSymbol()
859 Elf_Sym* symbol = GetSymbol(section_type, i); in FindSymbolByName()
905 Elf_Sym* symbol = GetSymbol(section_type, i); in FindSymbolByName()
923 Elf_Sym* symbol = FindSymbolByName(section_type, symbol_name, build_map); in FindSymbolAddress()
1321 dynsym_section_start_ = reinterpret_cast<Elf_Sym*>(d_ptr); in Load()
1641 Elf_Sym* symbol = GetSymbol(section_type, i); in FixupSymbols()
/art/compiler/debug/
Delf_debug_writer.cc203 using Elf_Sym = typename ElfTypes::Sym; in MakeElfFileForJIT() typedef
209 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char*) { in MakeElfFileForJIT()
237 using Elf_Sym = typename ElfTypes::Sym; in PackElfFileForJIT() typedef
258 std::deque<Elf_Sym> symbols; in PackElfFileForJIT()
270 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in PackElfFileForJIT()