From 1b61cf923010ce608e6266ec9450d6945b6ff325 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 20 Jul 2000 17:28:56 +0000 Subject: * MAINTAINERS: Add self as CRIS port maintainer. * readelf.c: Include elf/cris.h. (guess_is_rela): Handle EM_CRIS. (dump_relocations): Ditto. (get_machine_name): Ditto. * Makefile.am: Rebuild dependencies. * Makefile.in: Regenerate. * po/binutils.pot: Regenerate. --- binutils/readelf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'binutils/readelf.c') diff --git a/binutils/readelf.c b/binutils/readelf.c index 50d3b4c..ecd13be 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -71,6 +71,7 @@ #include "elf/pj.h" #include "elf/avr.h" #include "elf/ia64.h" +#include "elf/cris.h" #include "bucomm.h" #include "getopt.h" @@ -565,6 +566,7 @@ guess_is_rela (e_machine) case EM_MCORE: case EM_IA_64: case EM_AVR: + case EM_CRIS: return TRUE; case EM_MMA: @@ -879,6 +881,10 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela) case EM_IA_64: rtype = elf_ia64_reloc_type (type); break; + + case EM_CRIS: + rtype = elf_cris_reloc_type (type); + break; } if (rtype == NULL) @@ -1248,6 +1254,7 @@ get_machine_name (e_machine) case EM_ST19: return "STMicroelectronics ST19 8-bit microcontroller"; case EM_VAX: return "Digital VAX"; case EM_AVR: return "Atmel AVR 8-bit microcontroller"; + case EM_CRIS: return "Axis Communications 32-bit embedded processor"; default: sprintf (buff, _(": %x"), e_machine); return buff; -- cgit v1.1