From 5c70f934cb63069aa7d67370d49ccf0e4dbda5b2 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 18 Jun 2002 21:11:47 +0000 Subject: [PATCH] 2002-06-18 Dave Brolley From Catherine Moore: * readelf.c (elf/frv.h): #include it. (guess_is_rela): Support EM_CYGNUS_FRV. (dump_relocations): Ditto. (get_machine_name): Ditto. * Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h. --- binutils/ChangeLog | 9 +++++++++ binutils/Makefile.am | 1 + binutils/Makefile.in | 1 + binutils/NEWS | 2 ++ binutils/readelf.c | 7 +++++++ 5 files changed, 20 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 2463d81eb9..25cd45e9e1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,12 @@ +2002-06-18 Dave Brolley + + From Catherine Moore: + * readelf.c (elf/frv.h): #include it. + (guess_is_rela): Support EM_CYGNUS_FRV. + (dump_relocations): Ditto. + (get_machine_name): Ditto. + * Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h. + 2002-06-18 Jakub Jelinek * readelf.c (get_file_header): Only read the first section header if diff --git a/binutils/Makefile.am b/binutils/Makefile.am index 7d0d851a13..2d65eaed35 100644 --- a/binutils/Makefile.am +++ b/binutils/Makefile.am @@ -501,6 +501,7 @@ readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \ $(INCDIR)/elf/avr.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/d10v.h \ $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h $(INCDIR)/elf/fr30.h \ + $(INCDIR)/elf/frv.h \ $(INCDIR)/elf/h8.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h \ $(INCDIR)/elf/i860.h $(INCDIR)/elf/i960.h $(INCDIR)/elf/ia64.h \ $(INCDIR)/elf/m32r.h $(INCDIR)/elf/m68k.h $(INCDIR)/elf/mcore.h \ diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 69e3fd45f0..61b347b705 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -1229,6 +1229,7 @@ readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \ $(INCDIR)/elf/avr.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/d10v.h \ $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h $(INCDIR)/elf/fr30.h \ + $(INCDIR)/elf/frv.h \ $(INCDIR)/elf/h8.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h \ $(INCDIR)/elf/i860.h $(INCDIR)/elf/i960.h $(INCDIR)/elf/ia64.h \ $(INCDIR)/elf/m32r.h $(INCDIR)/elf/m68k.h $(INCDIR)/elf/mcore.h \ diff --git a/binutils/NEWS b/binutils/NEWS index 0648e23c5d..413a0cd364 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,4 +1,6 @@ -*- text -*- +Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400 and +FR500 included. Changes in version 2.12: diff --git a/binutils/readelf.c b/binutils/readelf.c index 4649b9b4d0..45ce308fe8 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -58,6 +58,7 @@ #include "elf/d30v.h" #include "elf/dlx.h" #include "elf/fr30.h" +#include "elf/frv.h" #include "elf/h8.h" #include "elf/hppa.h" #include "elf/i386.h" @@ -633,6 +634,7 @@ guess_is_rela (e_machine) case EM_CYGNUS_MN10300: case EM_FR30: case EM_CYGNUS_FR30: + case EM_CYGNUS_FRV: case EM_SH: case EM_ALPHA: case EM_MCORE: @@ -1031,6 +1033,10 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela) rtype = elf_fr30_reloc_type (type); break; + case EM_CYGNUS_FRV: + rtype = elf_frv_reloc_type (type); + break; + case EM_MCORE: rtype = elf_mcore_reloc_type (type); break; @@ -1508,6 +1514,7 @@ get_machine_name (e_machine) case EM_MN10200: return "mn10200"; case EM_CYGNUS_FR30: case EM_FR30: return "Fujitsu FR30"; + case EM_CYGNUS_FRV: return "Fujitsu FR-V"; case EM_PJ_OLD: case EM_PJ: return "picoJava"; case EM_MMA: return "Fujitsu Multimedia Accelerator"; -- 2.34.1