Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance
39 ElfW(Ehdr)* ehdr = reinterpret_cast<ElfW(Ehdr)*>(&__executable_start); in dl_iterate_phdr()41 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { in dl_iterate_phdr()53 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()54 exe_info.dlpi_phnum = ehdr->e_phnum; in dl_iterate_phdr()
86 ElfW(Ehdr) ehdr; in read_loadbase() local87 if (!get_val<ElfW(Half)>(entry, addr + offsetof(ElfW(Ehdr), e_phnum), &ehdr.e_phnum)) { in read_loadbase()90 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Ehdr), e_phoff), &ehdr.e_phoff)) { in read_loadbase()93 addr += ehdr.e_phoff; in read_loadbase()94 for (size_t i = 0; i < ehdr.e_phnum; i++) { in read_loadbase()
942 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(elf_addr); in FindPhdr()943 ElfW(Addr) offset = ehdr->e_phoff; in FindPhdr()944 return CheckPhdr(reinterpret_cast<ElfW(Addr)>(ehdr) + offset); in FindPhdr()