diff options
author | peter <peter@FreeBSD.org> | 2003-06-03 01:37:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-06-03 01:37:32 +0000 |
commit | bbc21e11a2e504031fd38b4f343dd3bc442d7342 (patch) | |
tree | d8b60191e060b3bfb602405406611bb9a5a6dd5a | |
parent | c3d6e4dceffc33c3915d2394322e10646b8cd649 (diff) | |
download | FreeBSD-src-bbc21e11a2e504031fd38b4f343dd3bc442d7342.zip FreeBSD-src-bbc21e11a2e504031fd38b4f343dd3bc442d7342.tar.gz |
Add AMD64 support.
-rw-r--r-- | usr.sbin/crunch/crunchide/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/crunch/crunchide/exec_elf32.c | 4 |
2 files changed, 5 insertions, 1 deletions
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: |