diff options
Diffstat (limited to 'usr.sbin/crunch/crunchide')
-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: |