Searched refs:ehdr (Results 1 - 2 of 2) sorted by relevance

/bionic/libc/bionic/
H A Ddl_iterate_phdr_static.c38 Elf32_Ehdr* ehdr = (Elf32_Ehdr*) &__executable_start; local
41 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1;
42 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1;
43 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1;
44 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1;
54 exe_info.dlpi_phdr = (Elf32_Phdr*) ((unsigned long) ehdr + ehdr->e_phoff);
55 exe_info.dlpi_phnum = ehdr->e_phnum;
/bionic/linker/
H A Dlinker_phdr.cpp629 const Elf32_Ehdr* ehdr = (const Elf32_Ehdr*)(void*)elf_addr; local
630 Elf32_Addr offset = ehdr->e_phoff;
631 return CheckPhdr((Elf32_Addr)ehdr + offset);

Completed in 861 milliseconds