Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/libs/libELF/
Delf.c10 bool elf_check(void *ehdr) in elf_check() argument
12 Elf32_Ehdr *ptr = (Elf32_Ehdr *)ehdr; in elf_check()
/DragonOS-0.1.2/kernel/src/process/
Dprocess.c197 Elf64_Ehdr ehdr = *(Elf64_Ehdr *)buf; in process_load_elf_file() local
199 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()
/DragonOS-0.1.2/kernel/src/common/
Delf.h367 bool elf_check(void * ehdr);