svn commit: r282291 - head/usr.sbin/crunch/crunchide

Ed Maste emaste at FreeBSD.org
Thu Apr 30 23:48:06 UTC 2015


Author: emaste
Date: Thu Apr 30 23:48:05 2015
New Revision: 282291
URL: https://svnweb.freebsd.org/changeset/base/282291

Log:
  crunchide: Restore local EM_AARCH64 constant for bootstrapping
  
  Most of the EM_* constants are available in all supported host branches,
  but EM_AARCH64 was added relatively recently. Add it back to fix
  building HEAD on 10.x.
  
  Noticed by:	adrian, jmallett

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	Thu Apr 30 22:56:43 2015	(r282290)
+++ head/usr.sbin/crunch/crunchide/exec_elf32.c	Thu Apr 30 23:48:05 2015	(r282291)
@@ -178,6 +178,9 @@ ELFNAMEEND(check)(int fd, const char *fn
 	switch (xe16toh(eh.e_machine)) {
 	case EM_386: break;
 	case EM_ALPHA: break;
+#ifndef EM_AARCH64
+#define	EM_AARCH64	183
+#endif
 	case EM_AARCH64: break;
 	case EM_ARM: break;
 	case EM_MIPS: break;


More information about the svn-src-all mailing list