* readelf.c: Include "elf/i960.h".
authorIan Lance Taylor <ian@airs.com>
Thu, 27 May 1999 22:04:40 +0000 (22:04 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 27 May 1999 22:04:40 +0000 (22:04 +0000)
(dump_relocations): Handle EM_960.

binutils/ChangeLog
binutils/readelf.c

index f5491d361df854c2a13c9e235da6aed6f4f4063b..627dad71b54418449b2d8a262ec18e38d52bdd41 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-28  Ian Lance Taylor  <ian@zembu.com>
+
+       * readelf.c: Include "elf/i960.h".
+       (dump_relocations): Handle EM_960.
+
 Thu May 27 11:58:33 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
 
        * objcopy.c (copy_archive): Preserve dates of archive members if
index c2d14869a0fe6dc959d1b93a85241e64783ce4e0..520344caab860d0efcee34b7f2a4ea3cced08854 100644 (file)
@@ -58,6 +58,7 @@
 #include "elf/arc.h"
 #include "elf/fr30.h"
 #include "elf/mcore.h"
+#include "elf/i960.h"
 
 #include "bucomm.h"
 #include "getopt.h"
@@ -351,6 +352,7 @@ dump_relocations (file, rel_offset, rel_size, symtab, strtab)
     case EM_ARM:
     case EM_386:
     case EM_486:
+    case EM_960:
     case EM_CYGNUS_M32R:
     case EM_CYGNUS_D10V:
     case EM_MIPS:
@@ -467,6 +469,10 @@ dump_relocations (file, rel_offset, rel_size, symtab, strtab)
          rtype = elf_m68k_reloc_type (ELF32_R_TYPE (info));
          break;
 
+       case EM_960:
+         rtype = elf_i960_reloc_type (ELF32_R_TYPE (info));
+         break;
+
        case EM_SPARC:
          rtype = elf_sparc_reloc_type (ELF32_R_TYPE (info));
          break;