From 19a77af4a3a3c00e932c5986372b3dbe8ec32d8d Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 3 Mar 1999 12:23:20 +0000 Subject: [PATCH] Add ELF for sparc and i386 (Andrew Gillham) --- usr.bin/crunch/crunchide/extern.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/usr.bin/crunch/crunchide/extern.h b/usr.bin/crunch/crunchide/extern.h index 7b4ff27301ce..b036b97f523b 100644 --- a/usr.bin/crunch/crunchide/extern.h +++ b/usr.bin/crunch/crunchide/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.5 1998/05/06 13:16:57 mycroft Exp $ */ +/* $NetBSD: extern.h,v 1.6 1999/03/03 12:23:20 christos Exp $ */ /* * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. @@ -30,23 +30,22 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef __alpha__ -#define NLIST_ECOFF -#define NLIST_ELF64 +#if defined(__alpha__) +# define NLIST_ECOFF +# define NLIST_ELF64 +#elif defined(__mips__) +# define NLIST_ELF32 +#elif defined(__powerpc__) +# define NLIST_ELF32 +#elif defined(__sparc__) || defined(__i386__) +# define NLIST_AOUT +# define NLIST_ELF32 #else -#ifdef __mips__ -#define NLIST_ELF32 -#else -#ifdef __powerpc__ -#define NLIST_ELF32 -#else -#define NLIST_AOUT +# define NLIST_AOUT /* #define NLIST_ECOFF */ /* #define NLIST_ELF32 */ /* #define NLIST_ELF64 */ #endif -#endif -#endif #ifdef NLIST_AOUT int check_aout(int, const char *);