Lines Matching refs:offset
32 Symbols::Symbols(uint64_t offset, uint64_t size, uint64_t entry_size, uint64_t str_offset, in Symbols() argument
34 : offset_(offset), in Symbols()
79 uint64_t offset = symbol_index * entry_size_; in BinarySearch() local
80 if (__builtin_add_overflow(offset, offset_, &offset)) { in BinarySearch()
85 if (!elf_memory->ReadFully(offset, &sym, sizeof(sym))) { in BinarySearch()
117 uint64_t offset = symbol_idx * entry_size_; in BuildRemapTable() local
118 if (__builtin_add_overflow(offset, offset_, &offset)) { in BuildRemapTable()
122 read_bytes = elf_memory->Read(offset, buffer, read_bytes); in BuildRemapTable()
127 for (uint64_t offset = 0; offset <= read_bytes - sizeof(SymType); in BuildRemapTable() local
128 offset += entry_size_, symbol_idx++) { in BuildRemapTable()
130 memcpy(&sym, &buffer[offset], sizeof(SymType)); // Copy to ensure alignment. in BuildRemapTable()
172 uint64_t offset = symbol_index * entry_size_; in GetName() local
173 if (__builtin_add_overflow(offset, offset_, &offset)) { in GetName()
177 if (!elf_memory->ReadFully(offset, &sym, sizeof(sym))) { in GetName()
208 uint64_t offset = i * entry_size_; in GetGlobal() local
209 if (__builtin_add_overflow(offset_, offset, &offset)) { in GetGlobal()
214 if (!elf_memory->ReadFully(offset, &entry, sizeof(entry))) { in GetGlobal()