This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
binutils (readelf) fixes for H8
- To: binutils at sources dot redhat dot com
- Subject: binutils (readelf) fixes for H8
- From: law at redhat dot com
- Date: Tue, 04 Sep 2001 20:27:56 -0600
- Reply-to: law at redhat dot com
Whee. This fixes the readelf.exp failures when running the binutils testsuite
for h8300-elf.
* 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.
Index: readelf.c
===================================================================
RCS file: /cvs/cvsfiles/devo/binutils/readelf.c,v
retrieving revision 1.146
diff -c -3 -p -r1.146 readelf.c
*** readelf.c 2001/08/11 21:56:29 1.146
--- readelf.c 2001/09/05 02:21:34
***************
*** 64,69 ****
--- 64,70 ----
#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"
*************** guess_is_rela (e_machine)
*** 620,625 ****
--- 621,629 ----
/* 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:
*************** dump_relocations (file, rel_offset, rel_
*** 1015,1020 ****
--- 1019,1030 ----
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: testsuite/binutils-all/readelf.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/binutils/testsuite/binutils-all/readelf.exp,v
retrieving revision 1.11
diff -c -3 -p -r1.11 readelf.exp
*** readelf.exp 2001/07/14 16:13:42 1.11
--- readelf.exp 2001/09/05 02:21:34
*************** if [is_remote host] {
*** 287,290 ****
# 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*}
--- 287,290 ----
# 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* h8300*-*-*}