svn commit: r282916 - in head: sys/sys usr.bin/elfdump

Ed Maste emaste at FreeBSD.org
Thu May 14 18:29:06 UTC 2015


Author: emaste
Date: Thu May 14 18:29:05 2015
New Revision: 282916
URL: https://svnweb.freebsd.org/changeset/base/282916

Log:
  Add ELF machine EM_IAMCU, 32-bit Intel MCU
  
  It is e_machine 6, which was previously reserved for 486.

Modified:
  head/sys/sys/elf_common.h
  head/usr.bin/elfdump/elfdump.c

Modified: head/sys/sys/elf_common.h
==============================================================================
--- head/sys/sys/elf_common.h	Thu May 14 18:15:21 2015	(r282915)
+++ head/sys/sys/elf_common.h	Thu May 14 18:29:05 2015	(r282916)
@@ -202,6 +202,7 @@ typedef struct {
 #define	EM_386		3	/* Intel i386. */
 #define	EM_68K		4	/* Motorola 68000. */
 #define	EM_88K		5	/* Motorola 88000. */
+#define	EM_IAMCU	6	/* Intel MCU. */
 #define	EM_860		7	/* Intel i860. */
 #define	EM_MIPS		8	/* MIPS R3000 Big-Endian only. */
 #define	EM_S370		9	/* IBM System/370. */

Modified: head/usr.bin/elfdump/elfdump.c
==============================================================================
--- head/usr.bin/elfdump/elfdump.c	Thu May 14 18:15:21 2015	(r282915)
+++ head/usr.bin/elfdump/elfdump.c	Thu May 14 18:29:05 2015	(r282916)
@@ -261,6 +261,7 @@ e_machines(u_int mach)
 	case EM_386:	return "EM_386";
 	case EM_68K:	return "EM_68K";
 	case EM_88K:	return "EM_88K";
+	case EM_IAMCU:	return "EM_IAMCU";
 	case EM_860:	return "EM_860";
 	case EM_MIPS:	return "EM_MIPS";
 	case EM_PPC:	return "EM_PPC";


More information about the svn-src-all mailing list