From c8daf7a00fa49989fc8f19eea576e0b996206856 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 11 Dec 2015 13:55:31 +0000 Subject: [PATCH] crunchide: add RISC-V to supported machine types MFC after: 1 week Sponsored by: The FreeBSD Foundation --- usr.sbin/crunch/crunchide/exec_elf32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c index fc9a959c0e4e..6d94429f7e91 100644 --- a/usr.sbin/crunch/crunchide/exec_elf32.c +++ b/usr.sbin/crunch/crunchide/exec_elf32.c @@ -187,6 +187,10 @@ ELFNAMEEND(check)(int fd, const char *fn) case /* EM_MIPS_RS3_LE */ EM_MIPS_RS4_BE: break; case EM_PPC: break; case EM_PPC64: break; +#ifndef EM_RISCV +#define EM_RISCV 243 +#endif + case EM_RISCV: break; case EM_SPARCV9: break; case EM_X86_64: break; /* ELFDEFNNAME(MACHDEP_ID_CASES) */