diff options
author | Jeff Law <law@redhat.com> | 2001-09-05 02:26:04 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2001-09-05 02:26:04 +0000 |
commit | b8720f9d577e623c5e7203ec586f19a06b5e7399 (patch) | |
tree | c7e38b9b45faf230674288dff24ffe912a2ee8ca /binutils/readelf.c | |
parent | ef96bde82e147421678d9f5390f5d3632d314d2c (diff) | |
download | gdb-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/readelf.c')
-rw-r--r-- | binutils/readelf.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |