Searched refs:load_addr (Results 1 – 1 of 1) sorted by relevance
/frameworks/libs/binary_translation/tiny_loader/ |
D | tiny_loader.cc | 131 bool LoadFromMemory(void* load_addr, size_t load_size, LoadedElfFile* loaded_elf_file); 141 bool ReadProgramHeadersFromMemory(const ElfEhdr* header, uintptr_t load_addr, size_t load_size, 158 static bool CheckMemoryRange(uintptr_t load_addr, size_t load_size, ElfAddr offset, size_t size, 293 bool TinyElfLoader::CheckMemoryRange(uintptr_t load_addr, size_t load_size, ElfAddr offset, in CheckMemoryRange() argument 298 return offset < load_size && !__builtin_add_overflow(load_addr, load_size, &dummy) && in CheckMemoryRange() 324 bool TinyElfLoader::ReadProgramHeadersFromMemory(const ElfEhdr* header, uintptr_t load_addr, in ReadProgramHeadersFromMemory() argument 330 if (!CheckMemoryRange(load_addr, load_size, header->e_phoff, size, alignof(ElfPhdr))) { in ReadProgramHeadersFromMemory() 336 *phdr_table = reinterpret_cast<const ElfPhdr*>(load_addr + header->e_phoff); in ReadProgramHeadersFromMemory() 585 uintptr_t load_addr = reinterpret_cast<uintptr_t>(load_ptr); in Parse() local 586 const ElfEhdr* header = reinterpret_cast<const ElfEhdr*>(load_addr); in Parse() [all …]
|