Lines Matching defs:eh
75 Elf64_Ehdr *eh;
88 eh = getehdr();
89 if (eh == NULL)
92 if (eh->e_type != ET_EXEC)
93 dboot_panic("not ET_EXEC, e_type = 0x%x", eh->e_type);
95 if (eh->e_phnum == 0 || eh->e_phoff == 0)
101 allphdrs = PGETBYTES(eh->e_phoff);
104 eh->e_phnum);
109 sechdrs = PGETBYTES(eh->e_shoff);
112 eh->e_shnum);
117 for (i = 0; i < eh->e_phnum; i++) {
119 phdr = (Elf64_Phdr *)(allphdrs + eh->e_phentsize * i);
179 for (i = 0; i < eh->e_shnum; i++) {
180 shdr = (Elf64_Shdr *)(sechdrs + eh->e_shentsize * i);