summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-10-23 10:18:41 +0000
committerpeter <peter@FreeBSD.org>2001-10-23 10:18:41 +0000
commitf3a4628bcccee5336ab18f4ce63a3d7867336bf6 (patch)
tree1f7c27607e110a475e0b05bd0b0d5d42cfb9c878 /usr.sbin
parenta8761e579c12bd49ded55732706947ed7cef4e10 (diff)
downloadFreeBSD-src-f3a4628bcccee5336ab18f4ce63a3d7867336bf6.zip
FreeBSD-src-f3a4628bcccee5336ab18f4ce63a3d7867336bf6.tar.gz
ia64 support. Hide a.out support solely under i386. While alpha never
was released in a.out form, it does define the a.out data structures. The ia64 port does not.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/crunch/crunchide/Makefile6
-rw-r--r--usr.sbin/crunch/crunchide/crunchide.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile
index b03e1f5..8af6b33 100644
--- a/usr.sbin/crunch/crunchide/Makefile
+++ b/usr.sbin/crunch/crunchide/Makefile
@@ -1,6 +1,10 @@
# $FreeBSD$
PROG= crunchide
-SRCS= crunchide.c exec_aout.c exec_elf32.c exec_elf64.c
+SRCS= crunchide.c exec_elf32.c exec_elf64.c
+
+.if ${MACHINE_ARCH} == i386
+SRCS+= exec_aout.c
+.endif
.include <bsd.prog.mk>
diff --git a/usr.sbin/crunch/crunchide/crunchide.c b/usr.sbin/crunch/crunchide/crunchide.c
index 9d2772f..6b3bd92 100644
--- a/usr.sbin/crunch/crunchide/crunchide.c
+++ b/usr.sbin/crunch/crunchide/crunchide.c
@@ -1,4 +1,5 @@
/* $NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $ */
+/* $FreeBSD$ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
* Copyright (c) 1994 University of Maryland
@@ -207,9 +208,11 @@ struct {
int (*check)(int, const char *); /* 1 if match, zero if not */
int (*hide)(int, const char *); /* non-zero if error */
} exec_formats[] = {
+#ifdef __i386__
#ifdef NLIST_AOUT
{ "a.out", check_aout, hide_aout, },
#endif
+#endif
#ifdef NLIST_ECOFF
{ "ECOFF", check_elf64, hide_elf64, },
#endif
OpenPOWER on IntegriCloud