Lines Matching full:elf
5 * Strip the object file headers/trailers from an executable (ELF or ECOFF).
10 * Converts an ECOFF or ELF object file into a bootable file. The
30 # include <linux/elf.h>
61 struct elfhdr *elf; in main() local
149 elf = (struct elfhdr *) buf; in main()
151 if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { in main()
152 if (elf->e_type != ET_EXEC) { in main()
153 fprintf(stderr, "%s: %s is not an ELF executable\n", in main()
157 if (!elf_check_arch(elf)) { in main()
159 prog_name, elf->e_machine); in main()
162 if (elf->e_phnum != 1) { in main()
165 prog_name, elf->e_phnum); in main()
168 e_entry = elf->e_entry; in main()
170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
181 /* work around ELF bug: */ in main()