NetBSD/sys/arch/sun2/include/elf_machdep.h
thorpej 07d023a3aa Define ELF32_EHDR_FLAGS_OK()/ELF64_EHDR_FLAGS_OK() and use it
as an added measure to make sure that we can execute a binary.
These default to (1) if elf_machdep.h does not override them.

On Sun2, ELF32_EHDR_FLAGS_OK() checks for the presense of EF_M68000,
since the 68010 cannot run binaries for the 68020-and-up.
2002-01-28 22:15:54 +00:00

15 lines
310 B
C

/* $NetBSD: elf_machdep.h,v 1.5 2002/01/28 22:15:55 thorpej Exp $ */
#ifndef _MACHINE_ELF_MACHDEP_H_
#define _MACHINE_ELF_MACHDEP_H_
#include <m68k/elf_machdep.h>
/*
* The 68010 can't execute binaries for 68020-and-up.
*/
#define ELF32_EHDR_FLAGS_OK(eh) \
(((eh)->e_flags & EF_M68000) != 0)
#endif