[rfa:] CRIS port part 7/8: binutils (readelf.c tweak consequences)
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Tue Jul 18 15:09:00 GMT 2000
Makefile.am needs rebuilding since adding include of include/elf/cris.h.
Ditto binutils.pot, but if so requested I'll leave it out.
Makefile.am changes aren't included here, since they're autogenerated.
Ok to commit?
2000-07-18 Hans-Peter Nilsson <hp@axis.com>
* 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.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.61
diff -p -c -r1.61 readelf.c
*** readelf.c 2000/07/10 14:51:04 1.61
--- readelf.c 2000/07/18 18:59:48
***************
*** 71,76 ****
--- 71,77 ----
#include "elf/pj.h"
#include "elf/avr.h"
#include "elf/ia64.h"
+ #include "elf/cris.h"
#include "bucomm.h"
#include "getopt.h"
*************** guess_is_rela (e_machine)
*** 565,570 ****
--- 566,572 ----
case EM_MCORE:
case EM_IA_64:
case EM_AVR:
+ case EM_CRIS:
return TRUE;
case EM_MMA:
*************** dump_relocations (file, rel_offset, rel_
*** 879,884 ****
--- 881,890 ----
case EM_IA_64:
rtype = elf_ia64_reloc_type (type);
break;
+
+ case EM_CRIS:
+ rtype = elf_cris_reloc_type (type);
+ break;
}
if (rtype == NULL)
*************** get_machine_name (e_machine)
*** 1242,1247 ****
--- 1248,1254 ----
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;
brgds, H-P
More information about the Binutils
mailing list