ehdr               55 bsp/boot/common/elf.c 	Elf32_Ehdr *ehdr;
ehdr               60 bsp/boot/common/elf.c 	ehdr = (Elf32_Ehdr *)img;
ehdr               63 bsp/boot/common/elf.c 	if ((ehdr->e_ident[EI_MAG0] != ELFMAG0) ||
ehdr               64 bsp/boot/common/elf.c 	    (ehdr->e_ident[EI_MAG1] != ELFMAG1) ||
ehdr               65 bsp/boot/common/elf.c 	    (ehdr->e_ident[EI_MAG2] != ELFMAG2) ||
ehdr               66 bsp/boot/common/elf.c 	    (ehdr->e_ident[EI_MAG3] != ELFMAG3)) {
ehdr               71 bsp/boot/common/elf.c 	phdr = (Elf32_Phdr *)((paddr_t)ehdr + ehdr->e_ehsize);
ehdr               92 bsp/boot/common/elf.c 	switch (ehdr->e_type) {
ehdr              112 bsp/boot/common/elf.c 	Elf32_Ehdr *ehdr;
ehdr              118 bsp/boot/common/elf.c 	ehdr = (Elf32_Ehdr *)img;
ehdr              119 bsp/boot/common/elf.c 	phdr = (Elf32_Phdr *)((paddr_t)ehdr + ehdr->e_phoff);
ehdr              124 bsp/boot/common/elf.c 	for (i = 0; i < (int)ehdr->e_phnum; i++, phdr++) {
ehdr              169 bsp/boot/common/elf.c 	m->entry = ehdr->e_entry;
ehdr              277 bsp/boot/common/elf.c 	Elf32_Ehdr *ehdr;
ehdr              283 bsp/boot/common/elf.c 	ehdr = (Elf32_Ehdr *)img;
ehdr              284 bsp/boot/common/elf.c 	shdr = (Elf32_Shdr *)((paddr_t)ehdr + ehdr->e_shoff);
ehdr              290 bsp/boot/common/elf.c 	for (i = 0; i < (int)ehdr->e_shnum; i++, shdr++) {
ehdr              358 bsp/boot/common/elf.c 	m->entry = (vaddr_t)ptokv(ehdr->e_entry + m->phys);
ehdr              362 bsp/boot/common/elf.c 	shdr = (Elf32_Shdr *)((paddr_t)ehdr + ehdr->e_shoff);
ehdr              363 bsp/boot/common/elf.c 	for (i = 0; i < (int)ehdr->e_shnum; i++, shdr++) {
ehdr              101 include/sys/elf.h #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
ehdr              102 include/sys/elf.h                       (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
ehdr              103 include/sys/elf.h                       (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
ehdr              104 include/sys/elf.h                       (ehdr).e_ident[EI_MAG3] == ELFMAG3)
ehdr               59 usr/server/exec/exec_elf.c load_exec(Elf32_Ehdr *ehdr, task_t task, int fd, vaddr_t *entry)
ehdr               66 usr/server/exec/exec_elf.c 	phdr = (Elf32_Phdr *)((u_long)ehdr + ehdr->e_phoff);
ehdr               70 usr/server/exec/exec_elf.c 	for (i = 0; i < (int)ehdr->e_phnum; i++, phdr++) {
ehdr              100 usr/server/exec/exec_elf.c 	*entry = (vaddr_t)ehdr->e_entry;
ehdr              195 usr/server/exec/exec_elf.c load_reloc(Elf32_Ehdr *ehdr, task_t task, int fd, vaddr_t *entry)
ehdr              206 usr/server/exec/exec_elf.c 	shdr_size = ehdr->e_shentsize * ehdr->e_shnum;
ehdr              212 usr/server/exec/exec_elf.c 	if (lseek(fd, ehdr->e_shoff, SEEK_SET) < 0) {
ehdr              224 usr/server/exec/exec_elf.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
ehdr              247 usr/server/exec/exec_elf.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
ehdr              297 usr/server/exec/exec_elf.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
ehdr              306 usr/server/exec/exec_elf.c 	*entry = (vaddr_t)((u_long)mapped + ehdr->e_entry);
ehdr              311 usr/server/exec/exec_elf.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
ehdr              366 usr/server/exec/exec_elf.c 	Elf32_Ehdr *ehdr;
ehdr              369 usr/server/exec/exec_elf.c 	ehdr = (Elf32_Ehdr *)exec->header;
ehdr              371 usr/server/exec/exec_elf.c 		 ehdr->e_ident[EI_MAG0],
ehdr              372 usr/server/exec/exec_elf.c 		 ehdr->e_ident[EI_MAG1],
ehdr              373 usr/server/exec/exec_elf.c 		 ehdr->e_ident[EI_MAG2],
ehdr              374 usr/server/exec/exec_elf.c 		 ehdr->e_ident[EI_MAG3]));
ehdr              376 usr/server/exec/exec_elf.c 	if ((ehdr->e_ident[EI_MAG0] != ELFMAG0) ||
ehdr              377 usr/server/exec/exec_elf.c 	    (ehdr->e_ident[EI_MAG1] != ELFMAG1) ||
ehdr              378 usr/server/exec/exec_elf.c 	    (ehdr->e_ident[EI_MAG2] != ELFMAG2) ||
ehdr              379 usr/server/exec/exec_elf.c 	    (ehdr->e_ident[EI_MAG3] != ELFMAG3))
ehdr              383 usr/server/exec/exec_elf.c 	if (ehdr->e_type != ET_EXEC)
ehdr              386 usr/server/exec/exec_elf.c 	if (ehdr->e_type != ET_REL)