Searched refs:Elf_Sym (Results 1 – 5 of 5) sorted by relevance
/art/libelffile/elf/ |
D | elf_debug_reader.h | 40 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()
|
D | elf_builder.h | 83 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/ |
D | elf_file_impl.h | 40 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_;
|
D | elf_file.cc | 756 const Elf_Sym* sym = FindDynamicSymbol(symbol_name); in FindDynamicSymbolAddress() 782 Elf_Sym* symbol = GetSymbol(SHT_DYNSYM, symbol_and_chain_index); in FindDynamicSymbol() 813 Elf_Sym* sym_start = GetSymbolSectionStart(section_type); in GetSymbol() 858 Elf_Sym* symbol = GetSymbol(section_type, i); in FindSymbolByName() 904 Elf_Sym* symbol = GetSymbol(section_type, i); in FindSymbolByName() 922 Elf_Sym* symbol = FindSymbolByName(section_type, symbol_name, build_map); in FindSymbolAddress() 1312 dynsym_section_start_ = reinterpret_cast<Elf_Sym*>(d_ptr); in Load() 1632 Elf_Sym* symbol = GetSymbol(section_type, i); in FixupSymbols()
|
/art/compiler/debug/ |
D | elf_debug_writer.cc | 204 using Elf_Sym = typename ElfTypes::Sym; in MakeElfFileForJIT() typedef 210 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char*) { in MakeElfFileForJIT() 237 using Elf_Sym = typename ElfTypes::Sym; in PackElfFileForJIT() typedef 263 std::deque<Elf_Sym> symbols; in PackElfFileForJIT() 275 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in PackElfFileForJIT()
|