svn commit: r292106 - head/usr.sbin/crunch/crunchide
Ed Maste
emaste at FreeBSD.org
Fri Dec 11 13:55:33 UTC 2015
Author: emaste
Date: Fri Dec 11 13:55:31 2015
New Revision: 292106
URL: https://svnweb.freebsd.org/changeset/base/292106
Log:
crunchide: add RISC-V to supported machine types
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/crunch/crunchide/exec_elf32.c
Modified: head/usr.sbin/crunch/crunchide/exec_elf32.c
==============================================================================
--- head/usr.sbin/crunch/crunchide/exec_elf32.c Fri Dec 11 13:30:49 2015 (r292105)
+++ head/usr.sbin/crunch/crunchide/exec_elf32.c Fri Dec 11 13:55:31 2015 (r292106)
@@ -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) */
More information about the svn-src-head
mailing list