Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2015 12:44:02 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r288171 - in stable/10: sys/sys usr.bin/elfdump
Message-ID:  <201509241244.t8OCi2NL028123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Sep 24 12:44:02 2015
New Revision: 288171
URL: https://svnweb.freebsd.org/changeset/base/288171

Log:
  MFC r285841: Add RISC-V ELF machine type definition
  
  EM_RISCV is now officially registered as e_machine 243.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/sys/elf_common.h
  stable/10/usr.bin/elfdump/elfdump.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/elf_common.h
==============================================================================
--- stable/10/sys/sys/elf_common.h	Thu Sep 24 12:22:47 2015	(r288170)
+++ stable/10/sys/sys/elf_common.h	Thu Sep 24 12:44:02 2015	(r288171)
@@ -238,6 +238,7 @@ typedef struct {
 #define	EM_UNICORE	110	/* Microprocessor series from PKU-Unity Ltd.
 				   and MPRC of Peking University */
 #define	EM_AARCH64	183	/* AArch64 (64-bit ARM) */
+#define	EM_RISCV	243	/* RISC-V */
 
 /* Non-standard or deprecated. */
 #define	EM_486		6	/* Intel i486. */

Modified: stable/10/usr.bin/elfdump/elfdump.c
==============================================================================
--- stable/10/usr.bin/elfdump/elfdump.c	Thu Sep 24 12:22:47 2015	(r288170)
+++ stable/10/usr.bin/elfdump/elfdump.c	Thu Sep 24 12:44:02 2015	(r288171)
@@ -271,6 +271,7 @@ e_machines(u_int mach)
 	case EM_IA_64:	return "EM_IA_64";
 	case EM_X86_64:	return "EM_X86_64";
 	case EM_AARCH64:return "EM_AARCH64";
+	case EM_RISCV:	return "EM_RISCV";
 	}
 	snprintf(machdesc, sizeof(machdesc),
 	    "(unknown machine) -- type 0x%x", mach);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509241244.t8OCi2NL028123>