Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Ddl_iterate_phdr_static.cpp43 ElfW(Ehdr)* ehdr = reinterpret_cast<ElfW(Ehdr)*>(&__executable_start); in dl_iterate_phdr()
45 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { in dl_iterate_phdr()
57 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()
58 exe_info.dlpi_phnum = ehdr->e_phnum; in dl_iterate_phdr()
/bionic/libc/malloc_debug/
DMapData.cpp106 ElfW(Ehdr) ehdr; in read_loadbias() local
107 if (!get_val<ElfW(Half)>(entry, addr + offsetof(ElfW(Ehdr), e_phnum), &ehdr.e_phnum)) { in read_loadbias()
110 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Ehdr), e_phoff), &ehdr.e_phoff)) { in read_loadbias()
113 addr += ehdr.e_phoff; in read_loadbias()
114 for (size_t i = 0; i < ehdr.e_phnum; i++) { in read_loadbias()
/bionic/tests/
Dlink_test.cpp67 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + in TEST()
70 ASSERT_EQ(0, memcmp(ehdr, ELFMAG, SELFMAG)); in TEST()
72 ASSERT_EQ(info->dlpi_phnum, ehdr->e_phnum); in TEST()
Dmalloc_test.cpp961 Elf64_Ehdr ehdr; in IsDynamic() local
963 Elf32_Ehdr ehdr; in IsDynamic()
972 bool read_completed = android::base::ReadFully(fd, &ehdr, sizeof(ehdr)); in IsDynamic()
975 return !read_completed || ehdr.e_type == ET_DYN; in IsDynamic()
/bionic/linker/
Dlinker_phdr.cpp1115 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(elf_addr); in FindPhdr()
1116 ElfW(Addr) offset = ehdr->e_phoff; in FindPhdr()
1117 return CheckPhdr(reinterpret_cast<ElfW(Addr)>(ehdr) + offset); in FindPhdr()