elf 8 kernel/elf.h uchar elf[12]; elf 28 kernel/exec.c struct elfhdr elf; elf 43 kernel/exec.c if(readi(ip, 0, (uint64)&elf, 0, sizeof(elf)) != sizeof(elf)) elf 46 kernel/exec.c if(elf.magic != ELF_MAGIC) elf 53 kernel/exec.c for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ elf 127 kernel/exec.c p->trapframe->epc = elf.entry; // initial program counter = main