From aeb756f1b5dbaac78ca0f7332c73baf7a6c163d8 Mon Sep 17 00:00:00 2001 From: ragge Date: Wed, 1 Nov 2000 14:23:04 +0000 Subject: [PATCH] Add define NO_MID_CHECK that avoids checking of the a.out mid field. --- sys/lib/libsa/loadfile.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/lib/libsa/loadfile.c b/sys/lib/libsa/loadfile.c index 689ae9e4e174..7a54283affef 100644 --- a/sys/lib/libsa/loadfile.c +++ b/sys/lib/libsa/loadfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: loadfile.c,v 1.7 1999/12/29 11:08:02 hannken Exp $ */ +/* $NetBSD: loadfile.c,v 1.8 2000/11/01 14:23:04 ragge Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -155,8 +155,11 @@ loadfile(fname, marks, flags) } else #endif #ifdef BOOT_AOUT - if (OKMAGIC(N_GETMAGIC(hdr.aout)) && - N_GETMID(hdr.aout) == MID_MACHINE) { + if (OKMAGIC(N_GETMAGIC(hdr.aout)) +#ifndef NO_MID_CHECK + && N_GETMID(hdr.aout) == MID_MACHINE +#endif + ) { rval = aout_exec(fd, &hdr.aout, marks, flags); } else #endif