Searched refs:IS_ELF (Results 1 – 25 of 25) sorted by relevance
32 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ macro222 if (!IS_ELF(*hdr)) { in read_at_address()
98 if (IS_ELF(ehdr)) { in ofw_initrd_probe_and_attach()
71 if (read(fd, &h, sizeof h) != sizeof h || !IS_ELF(h)) { in elf_getnfile()
109 MPASS(IS_ELF(*ehdr)); in __elfN()
56 if (!IS_ELF(*eh)) in valid_elf_header()
110 if (IS_ELF(*ehdr) && in __elf_is_okay__()
120 if (!IS_ELF(*hdr)) { in link_elf_ctf_get()
1054 if (!IS_ELF(*hdr)) { in link_elf_load_file()
775 if (!IS_ELF(*hdr)) { in link_elf_load_file()
503 if (!IS_ELF(*hdr) || in __elfN()
347 else if (IS_ELF(hdr.eh)) in load()
173 if (IS_ELF(eh) == 0 || eh.e_ident[EI_CLASS] != ELFCLASS) in ELFNAMEEND()
365 if (!IS_ELF(*hdr)) { in check_elf_headers()
310 } else if (IS_ELF(hdr.eh)) { in load()
573 if (!IS_ELF(*ehdr)) { in load_external_symtab()
365 } else if (IS_ELF(hdr.eh)) { in load()
363 if (hdr->size >= sizeof(Elf32_Ehdr) && IS_ELF(*ee)) { in gethdr()
408 else if (IS_ELF(hdr.eh)) in load()
601 if (!IS_ELF(eh)) { in load()
126 if (!IS_ELF(*hdr)) { in __elfN()
305 if (!IS_ELF(*ehdr)) { in __elfN()
190 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ macro
137 if (!IS_ELF(hdr)) in elf_ident()
604 if (!IS_ELF(*e)) { in main()