07d023a3aa
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.
15 lines
310 B
C
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
|