Searched refs:e_ident (Results 1 – 1 of 1) sorted by relevance
/system/core/debuggerd/ |
D | elf_utils.cpp | 36 Backtrace* backtrace, uintptr_t base_addr, uint8_t* e_ident, std::string* build_id) { in get_build_id() argument 39 memcpy(&hdr.e_ident[0], e_ident, EI_NIDENT); in get_build_id() 100 uint8_t e_ident[EI_NIDENT]; in elf_get_build_id() local 101 if (backtrace->Read(addr, e_ident, SELFMAG) != SELFMAG) { in elf_get_build_id() 105 if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) { in elf_get_build_id() 110 …if (backtrace->Read(addr + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG) != EI_NIDENT - SELFMAG… in elf_get_build_id() 114 if (e_ident[EI_CLASS] == ELFCLASS32) { in elf_get_build_id() 115 return get_build_id<Elf32_Ehdr, Elf32_Phdr, Elf32_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id() 116 } else if (e_ident[EI_CLASS] == ELFCLASS64) { in elf_get_build_id() 117 return get_build_id<Elf64_Ehdr, Elf64_Phdr, Elf64_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id()
|