Lines Matching refs:elf_memory
50 Symbols::Info* Symbols::BinarySearch(uint64_t addr, Memory* elf_memory, uint64_t* func_offset) { in BinarySearch() argument
70 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in BinarySearch()
91 void Symbols::BuildRemapTable(Memory* elf_memory) { in BuildRemapTable() argument
101 size_t size = elf_memory->Read(offset_ + symbol_idx * entry_size_, buffer, read); in BuildRemapTable()
126 bool Symbols::GetName(uint64_t addr, Memory* elf_memory, SharedString* name, in GetName() argument
131 info = BinarySearch<SymType, false>(addr, elf_memory, func_offset); in GetName()
134 BuildRemapTable<SymType>(elf_memory); in GetName()
136 info = BinarySearch<SymType, true>(addr, elf_memory, func_offset); in GetName()
140 info = BinarySearch<SymType, true>(addr, elf_memory, func_offset); in GetName()
149 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in GetName()
157 if (!IsFunc(&sym) || !elf_memory->ReadString(str, &symbol_name, str_end_ - str)) { in GetName()
167 bool Symbols::GetGlobal(Memory* elf_memory, const std::string& name, uint64_t* memory_address) { in GetGlobal() argument
181 if (!elf_memory->ReadFully(offset_ + i * entry_size_, &entry, sizeof(entry))) { in GetGlobal()
190 if (elf_memory->ReadString(str_offset, &symbol, str_end_ - str_offset) && symbol == name) { in GetGlobal()