Lines Matching defs:ehdr
72 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)page_addr;
77 if (ehdr->e_phnum >
83 for (i = 0; i < ehdr->e_phnum; ++i) {
97 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)page_addr;
102 if (ehdr->e_phnum >
108 for (i = 0; i < ehdr->e_phnum; ++i) {
129 Elf32_Ehdr *ehdr;
144 ehdr = (Elf32_Ehdr *)page_addr;
147 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0)
151 if (ehdr->e_type != ET_EXEC && ehdr->e_type != ET_DYN)
154 if (ehdr->e_ident[EI_CLASS] == ELFCLASS32)
156 else if (ehdr->e_ident[EI_CLASS] == ELFCLASS64)