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()
208 Elf64_Ehdr ehdr = *(Elf64_Ehdr *)buf; in process_load_elf_file() local210 if (ehdr.e_machine != EM_AMD64) in process_load_elf_file()212 kerror("e_machine=%d", ehdr.e_machine); in process_load_elf_file()219 if (ehdr.e_type != ET_EXEC) in process_load_elf_file()221 kerror("Not executable file! filename=%s\tehdr->e_type=%d", path, ehdr.e_type); in process_load_elf_file()226 regs->rip = ehdr.e_entry; in process_load_elf_file()227 current_pcb->mm->code_addr_start = ehdr.e_entry; in process_load_elf_file()233 pos = ehdr.e_phoff; in process_load_elf_file()242 tmp_use_fs.r10 = (uint64_t)ehdr.e_phentsize * (uint64_t)ehdr.e_phnum; in process_load_elf_file()259 for (int i = 0; i < ehdr.e_phnum; ++i, ++phdr) in process_load_elf_file()
367 bool elf_check(void * ehdr);