From bbc21e11a2e504031fd38b4f343dd3bc442d7342 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 3 Jun 2003 01:37:32 +0000 Subject: Add AMD64 support. --- usr.sbin/crunch/crunchide/Makefile | 2 +- usr.sbin/crunch/crunchide/exec_elf32.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile index 7b6abed..945ed5b 100644 --- a/usr.sbin/crunch/crunchide/Makefile +++ b/usr.sbin/crunch/crunchide/Makefile @@ -11,7 +11,7 @@ SRCS+= exec_aout.c .endif .if ${TARGET_ARCH} == alpha || ${TARGET_ARCH} == ia64 || \ - ${TARGET_ARCH} == sparc64 + ${TARGET_ARCH} == sparc64 || ${TARGET_ARCH} == amd64 CFLAGS+=-DNLIST_ELF64 SRCS+= exec_elf64.c exec_elf64.o: exec_elf32.c diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c index f74bd54..950d557 100644 --- a/usr.sbin/crunch/crunchide/exec_elf32.c +++ b/usr.sbin/crunch/crunchide/exec_elf32.c @@ -164,6 +164,10 @@ ELFNAMEEND(check)(int fd, const char *fn) #define EM_SPARCV9 43 #endif case EM_SPARCV9: break; +#ifndef EM_X86_64 +#define EM_X86_64 62 +#endif + case EM_X86_64: break; /* ELFDEFNNAME(MACHDEP_ID_CASES) */ default: -- cgit v1.1