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); _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"