Searched refs:IS_ELF (Results 1 – 24 of 24) sorted by relevance
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()
112 MPASS(IS_ELF(*ehdr)); in __elfN()
56 if (!IS_ELF(*eh)) in valid_elf_header()
107 if (IS_ELF(*ehdr) && in __elf_is_okay__()
120 if (!IS_ELF(*hdr)) { in link_elf_ctf_get()
773 if (!IS_ELF(*hdr)) { in link_elf_load_file()
1033 if (!IS_ELF(*hdr)) { in link_elf_load_file()
493 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()
360 if (!IS_ELF(*hdr)) { in check_elf_headers()
310 } else if (IS_ELF(hdr.eh)) { in load()
575 if (!IS_ELF(*ehdr)) { in load_external_symtab()
363 if (hdr->size >= sizeof(Elf32_Ehdr) && IS_ELF(*ee)) { in gethdr()
602 if (!IS_ELF(eh)) { in load()
408 else if (IS_ELF(hdr.eh)) in load()
363 } else if (IS_ELF(hdr.eh)) { in load()
128 if (!IS_ELF(*hdr)) { in __elfN()
307 if (!IS_ELF(*ehdr)) { in __elfN()
190 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ macro
136 if (!IS_ELF(hdr)) in elf_ident()
603 if (!IS_ELF(*e)) { in main()