Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance
10 bool elf_check(void *ehdr) in elf_check() argument12 Elf32_Ehdr *ptr = (Elf32_Ehdr *)ehdr; in elf_check()
197 Elf64_Ehdr ehdr = *(Elf64_Ehdr *)buf; in process_load_elf_file() local199 if (ehdr.e_machine != EM_AMD64) in process_load_elf_file()201 kerror("e_machine=%d", ehdr.e_machine); in process_load_elf_file()208 if (ehdr.e_type != ET_EXEC) in process_load_elf_file()210 kerror("Not executable file! filename=%s\tehdr->e_type=%d", path, ehdr.e_type); in process_load_elf_file()215 regs->rip = ehdr.e_entry; in process_load_elf_file()216 current_pcb->mm->code_addr_start = ehdr.e_entry; in process_load_elf_file()220 pos = ehdr.e_phoff; in process_load_elf_file()223 …filp->file_ops->read(filp, (char *)buf, (uint64_t)ehdr.e_phentsize * (uint64_t)ehdr.e_phnum, &pos); in process_load_elf_file()233 for (int i = 0; i < ehdr.e_phnum; ++i, ++phdr) in process_load_elf_file()
367 bool elf_check(void * ehdr);