aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2001-09-05 02:26:04 +0000
committerJeff Law <law@redhat.com>2001-09-05 02:26:04 +0000
commitb8720f9d577e623c5e7203ec586f19a06b5e7399 (patch)
treec7e38b9b45faf230674288dff24ffe912a2ee8ca /binutils
parentef96bde82e147421678d9f5390f5d3632d314d2c (diff)
downloadgdb-b8720f9d577e623c5e7203ec586f19a06b5e7399.zip
gdb-b8720f9d577e623c5e7203ec586f19a06b5e7399.tar.gz
gdb-b8720f9d577e623c5e7203ec586f19a06b5e7399.tar.bz2
* readelf.c: Include elf/h8 for H8 series definitions.
(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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/readelf.c10
-rw-r--r--binutils/testsuite/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/readelf.exp2
4 files changed, 22 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6b1d848..d437829 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 8b8e8b6..f219979 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 7aa5d46..ff1b14e 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -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
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index c56fef7..765ce03 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -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*-*-*}