Lines Matching defs:elf
30 # include <linux/elf.h>
61 struct elfhdr *elf;
149 elf = (struct elfhdr *) buf;
151 if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
152 if (elf->e_type != ET_EXEC) {
157 if (!elf_check_arch(elf)) {
159 prog_name, elf->e_machine);
162 if (elf->e_phnum != 1) {
165 prog_name, elf->e_phnum);
168 e_entry = elf->e_entry;
170 lseek(fd, elf->e_phoff, SEEK_SET);