Reinstate readelf decoding of i860 and i960 machine names

Alan Modra amodra@gmail.com
Sat Apr 14 08:43:00 GMT 2018


Decoding of EM_* ought to continue.  Nick, perhaps I should restore
include/elf/i860.h and i960.h too, so that readelf could continue to
display i860/i960 relocs?

	* readelf.c (get_machine_name): Revert 2018-04-11 change.

diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4b6f9fc..cfd35d2 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2252,6 +2252,7 @@ get_machine_name (unsigned e_machine)
     case EM_68K:		return "MC68000";
     case EM_88K:		return "MC88000";
     case EM_IAMCU:		return "Intel MCU";
+    case EM_860:		return "Intel 80860";
     case EM_MIPS:		return "MIPS R3000";
     case EM_S370:		return "IBM System/370";
       /* 10 */
@@ -2260,6 +2261,7 @@ get_machine_name (unsigned e_machine)
     case EM_PARISC:		return "HPPA";
     case EM_VPP550:		return "Fujitsu VPP500";
     case EM_SPARC32PLUS:	return "Sparc v8+" ;
+    case EM_960:		return "Intel 90860";
     case EM_PPC:		return "PowerPC";
       /* 20 */
     case EM_PPC64:		return "PowerPC64";

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list