diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2000-07-20 17:28:56 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2000-07-20 17:28:56 +0000 |
commit | 1b61cf923010ce608e6266ec9450d6945b6ff325 (patch) | |
tree | 751948e28e7a8c362e3ee51b4bc07decaf515027 /binutils/readelf.c | |
parent | 9d06555c53d713330444973dbaa93b1b4075a581 (diff) | |
download | gdb-1b61cf923010ce608e6266ec9450d6945b6ff325.zip gdb-1b61cf923010ce608e6266ec9450d6945b6ff325.tar.gz gdb-1b61cf923010ce608e6266ec9450d6945b6ff325.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, _("<unknown>: %x"), e_machine); return buff; |