diff options
-rw-r--r-- | sys/sys/elf_common.h | 1 | ||||
-rw-r--r-- | usr.bin/elfdump/elfdump.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h index 889b65c..25e016c 100644 --- a/sys/sys/elf_common.h +++ b/sys/sys/elf_common.h @@ -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. */ diff --git a/usr.bin/elfdump/elfdump.c b/usr.bin/elfdump/elfdump.c index 9640dd5..3670f88 100644 --- a/usr.bin/elfdump/elfdump.c +++ b/usr.bin/elfdump/elfdump.c @@ -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); |