aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2002-06-18 21:11:47 +0000
committerDave Brolley <brolley@redhat.com>2002-06-18 21:11:47 +0000
commit5c70f934cb63069aa7d67370d49ccf0e4dbda5b2 (patch)
tree730ad6e0181a7cf2586dda61034f2457214b5a28 /binutils/readelf.c
parent4e5ba5b7eb03f3d40fd2b6c58cf9a6bc1dfa0632 (diff)
downloadgdb-5c70f934cb63069aa7d67370d49ccf0e4dbda5b2.zip
gdb-5c70f934cb63069aa7d67370d49ccf0e4dbda5b2.tar.gz
gdb-5c70f934cb63069aa7d67370d49ccf0e4dbda5b2.tar.bz2
2002-06-18 Dave Brolley <brolley@redhat.com>
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4649b9b..45ce308 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";