From 2f04386eb94bd541ec23270094d0c78a0189fd6a Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 28 Jun 1998 00:50:35 +0000 Subject: [PATCH] Add a macro for testing the e_machine field of Elf64_Ehdr. --- sys/alpha/include/elf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/alpha/include/elf.h b/sys/alpha/include/elf.h index e49a729562fa..2af443e46c2d 100644 --- a/sys/alpha/include/elf.h +++ b/sys/alpha/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: elf.h,v 1.1.1.1 1998/03/09 05:42:33 jb Exp $ + * $Id: elf.h,v 1.2 1998/06/10 10:54:57 dfr Exp $ */ #ifndef _MACHINE_ELF_H_ @@ -35,6 +35,8 @@ #include /* Definitions common to all 64 bit architectures. */ +#define ELF_MACHINE_OK(x) ((x) == EM_ALPHA) + /* * Auxiliary vector entries for passing information to the interpreter. *