From 3bf983fb25e2d0773618f5a046da0b78a8d7eb11 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sun, 28 Jun 1998 00:50:35 +0000 Subject: 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. * -- cgit v1.3