]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* readelf.c: Include elf/h8 for H8 series definitions.
authorJeff Law <law@redhat.com>
Wed, 5 Sep 2001 02:26:04 +0000 (02:26 +0000)
committerJeff Law <law@redhat.com>
Wed, 5 Sep 2001 02:26:04 +0000 (02:26 +0000)
(guess_is_rela): H8 series if RELA.
(dump_relocations): Handle H8 series relocations.

* testsuite/binutils/all/readelf.exp: Expect readelf -wi to
fail for the H8 series.

binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/readelf.exp

index 6b1d848dabe216647b1e78279f2b774d62e1070c..d4378296a461ec4840114c7cbc3c22f69fd15819 100644 (file)
@@ -1,3 +1,9 @@
+Tue Sep  4 20:26:08 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * readelf.c: Include elf/h8 for H8 series definitions.
+       (guess_is_rela): H8 series if RELA.
+       (dump_relocations): Handle H8 series relocations.
+
 2001-08-31  Eric Christopher  <echristo@redhat.com>
 
        * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
index 8b8e8b6c7d60bf784e36be277084d5188c6a01c6..f21997991e5af1eee1f3ba3df33d718d65de2bec 100644 (file)
@@ -64,6 +64,7 @@
 #include "elf/mn10200.h"
 #include "elf/mn10300.h"
 #include "elf/hppa.h"
+#include "elf/h8.h"
 #include "elf/arc.h"
 #include "elf/fr30.h"
 #include "elf/mcore.h"
@@ -589,6 +590,9 @@ guess_is_rela (e_machine)
 
       /* Targets that use RELA relocations.  */
     case EM_68K:
+    case EM_H8_300:
+    case EM_H8_300H:
+    case EM_H8S:
     case EM_SPARC32PLUS:
     case EM_SPARCV9:
     case EM_SPARC:
@@ -981,6 +985,12 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela)
          rtype = elf_hppa_reloc_type (type);
          break;
 
+       case EM_H8_300:
+       case EM_H8_300H:
+       case EM_H8S:
+         rtype = elf_h8_reloc_type (type);
+         break;
+
        case EM_PJ:
          rtype = elf_pj_reloc_type (type);
          break;
index 7aa5d468137e5df1bcd50e21dcf613ca17b9083e..ff1b14e61ce932595d724d7695bbd320b61ebc72 100644 (file)
@@ -1,3 +1,8 @@
+Tue Sep  4 20:25:41 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * binutils/all/readelf.exp: Expect readelf -wi to
+       fail for the H8 series.
+
 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
 
        * binutils-all/readelf.s-64: Adjust offsets for powerpc64.  Don't
index c56fef70ee840f7d6673a2b90c1bea4a3e9e8f67..765ce03aa88ad1f28b7519fbb165968a18216419 100644 (file)
@@ -287,4 +287,4 @@ if [is_remote host] {
 # The xfail targets here do not default to DWARF2 format debug information
 # The symptom is that the output of 'readelf -wi' is empty.
 
-readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-* *-*-linux*}
+readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-* *-*-linux* h8300*-*-*}