summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2021-07-24 16:56:55 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2021-07-24 16:56:55 +0000
commit17103e0e5989e1bf8d4ac9b1e109d7c803afb538 (patch)
tree13e40d360ecc04304c6058672c06260bfd6fd0ae /gnu/usr.bin/binutils-2.17
parent3ca9194b378019676fc5a59be13b8a6fcfb41143 (diff)
Pretty print ELF machine name as "RISC-V"
Instead of "<unknown>: f3". ok kettenis@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r--gnu/usr.bin/binutils-2.17/binutils/readelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/binutils/readelf.c b/gnu/usr.bin/binutils-2.17/binutils/readelf.c
index 507520f056b..7542ab47371 100644
--- a/gnu/usr.bin/binutils-2.17/binutils/readelf.c
+++ b/gnu/usr.bin/binutils-2.17/binutils/readelf.c
@@ -1733,6 +1733,7 @@ get_machine_name (unsigned e_machine)
case EM_ALTERA_NIOS2: return "Altera Nios II";
case EM_XC16X: return "Infineon Technologies xc16x";
case EM_AARCH64: return "AArch64";
+ case EM_RISCV: return "RISC-V";
default:
snprintf (buff, sizeof (buff), _("<unknown>: %x"), e_machine);
return buff;