* 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.
This commit is contained in:
Jeff Law 2001-09-05 02:26:04 +00:00
parent ef96bde82e
commit b8720f9d57
4 changed files with 22 additions and 1 deletions

View 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.

View 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;

View 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

View 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*-*-*}