From b8720f9d577e623c5e7203ec586f19a06b5e7399 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 5 Sep 2001 02:26:04 +0000 Subject: [PATCH] * 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. --- binutils/ChangeLog | 6 ++++++ binutils/readelf.c | 10 ++++++++++ binutils/testsuite/ChangeLog | 5 +++++ binutils/testsuite/binutils-all/readelf.exp | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6b1d848dabe..d4378296a46 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 * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K. diff --git a/binutils/readelf.c b/binutils/readelf.c index 8b8e8b6c7d6..f21997991e5 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 7aa5d468137..ff1b14e61ce 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 * 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 c56fef70ee8..765ce03aa88 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*-*-*} -- 2.30.2