Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
Ddl_iterate_phdr_static.cpp39 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()
Ddebug_mapinfo.cpp132 Elf_W(Ehdr) ehdr; in mapinfo_read_loadbase() local
133 if (!get_val<Elf_W(Half)>(mi, addr + offsetof(Elf_W(Ehdr), e_phnum), &ehdr.e_phnum)) { in mapinfo_read_loadbase()
136 if (!get_val<Elf_W(Off)>(mi, addr + offsetof(Elf_W(Ehdr), e_phoff), &ehdr.e_phoff)) { in mapinfo_read_loadbase()
139 addr += ehdr.e_phoff; in mapinfo_read_loadbase()
140 for (size_t i = 0; i < ehdr.e_phnum; i++) { in mapinfo_read_loadbase()
/bionic/linker/
Dlinker_phdr.cpp794 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(elf_addr); in FindPhdr()
795 ElfW(Addr) offset = ehdr->e_phoff; in FindPhdr()
796 return CheckPhdr(reinterpret_cast<ElfW(Addr)>(ehdr) + offset); in FindPhdr()