eh                156 kern/syscall/loadelf.c 	Elf_Ehdr eh;   /* Executable header */
eh                169 kern/syscall/loadelf.c 	uio_kinit(&iov, &ku, &eh, sizeof(eh), 0, UIO_READ);
eh                192 kern/syscall/loadelf.c 	if (eh.e_ident[EI_MAG0] != ELFMAG0 ||
eh                193 kern/syscall/loadelf.c 	    eh.e_ident[EI_MAG1] != ELFMAG1 ||
eh                194 kern/syscall/loadelf.c 	    eh.e_ident[EI_MAG2] != ELFMAG2 ||
eh                195 kern/syscall/loadelf.c 	    eh.e_ident[EI_MAG3] != ELFMAG3 ||
eh                196 kern/syscall/loadelf.c 	    eh.e_ident[EI_CLASS] != ELFCLASS32 ||
eh                197 kern/syscall/loadelf.c 	    eh.e_ident[EI_DATA] != ELFDATA2MSB ||
eh                198 kern/syscall/loadelf.c 	    eh.e_ident[EI_VERSION] != EV_CURRENT ||
eh                199 kern/syscall/loadelf.c 	    eh.e_version != EV_CURRENT ||
eh                200 kern/syscall/loadelf.c 	    eh.e_type!=ET_EXEC ||
eh                201 kern/syscall/loadelf.c 	    eh.e_machine!=EM_MACHINE) {
eh                220 kern/syscall/loadelf.c 	for (i=0; i<eh.e_phnum; i++) {
eh                221 kern/syscall/loadelf.c 		off_t offset = eh.e_phoff + i*eh.e_phentsize;
eh                265 kern/syscall/loadelf.c 	for (i=0; i<eh.e_phnum; i++) {
eh                266 kern/syscall/loadelf.c 		off_t offset = eh.e_phoff + i*eh.e_phentsize;
eh                304 kern/syscall/loadelf.c 	*entrypoint = eh.e_entry;