IS_ELF
if (!IS_ELF(eh))
if (IS_ELF(*ehdr) &&
if (!IS_ELF(ehdr) || ehdr.e_machine != ELF_TARG_MACH) {
else if (IS_ELF(*(Elf32_Ehdr *)&ex)) {
if (!IS_ELF(ehdr))
if (!IS_ELF(*ehdr) ||
if (eh->e_ehsize < sizeof(Elf_Ehdr) || !IS_ELF(*eh))
if (read(fd, &h, sizeof h) != sizeof h || !IS_ELF(h)) {
if (bytes < sizeof(exec_head.elf32) || IS_ELF(exec_head.elf32)) {
if (!IS_ELF(exec_head.elf32)) {
if (IS_ELF(head->elf32) &&
} else if (IS_ELF(head->elf64) &&
IS_ELF(hdr) && hdr.e_type == ET_EXEC;
if (!IS_ELF(elf_ex))
if (!IS_ELF(eh))
if (!IS_ELF(eh)) {
if (IS_ELF(*ehdr) &&
!IS_ELF(eh)) {
if (nbytes != sizeof ehdr || !IS_ELF(ehdr))