diff options
author | Nick Clifton <nickc@redhat.com> | 2002-07-18 11:11:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-07-18 11:11:13 +0000 |
commit | 1e4cf259d2f336fd30f5c4d6238f265f8e7c4bd0 (patch) | |
tree | b9aa6d61017656416136642dbdd8db63c9dd29b3 /binutils | |
parent | 7b6aa020af1844ef42b23aa683a8369ec63c1c76 (diff) | |
download | ppe42-binutils-1e4cf259d2f336fd30f5c4d6238f265f8e7c4bd0.tar.gz ppe42-binutils-1e4cf259d2f336fd30f5c4d6238f265f8e7c4bd0.zip |
Add IP2K support
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 9 | ||||
-rw-r--r-- | binutils/NEWS | 3 | ||||
-rw-r--r-- | binutils/readelf.c | 10 |
3 files changed, 22 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index fac182f0e2..d8d17f7e01 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,12 @@ +2002-07-18 Denis Chertykov <denisc@overta.ru> + Frank Ch. Eigler <fche@redhat.com> + + * readelf.c: Include "elf/ip2k.h". + (guess_is_rela): Add support for EM_IP2K and EM_IP2K_OLD. + (dump_relocations): Likewise. + (get_machine_name): Likewise. + * NEWS: Mention IP2K support. + 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com> * NEWS: Add 'Changes in 2.13'. diff --git a/binutils/NEWS b/binutils/NEWS index 5091e3bd22..21df17d010 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,4 +1,7 @@ -*- text -*- + +* Support for IP2K added by Denis Chertykov. + Changes in 2.13: * Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400 diff --git a/binutils/readelf.c b/binutils/readelf.c index 9c15d9f25c..bffe6c729c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -65,6 +65,7 @@ #include "elf/i860.h" #include "elf/i960.h" #include "elf/ia64.h" +#include "elf/ip2k.h" #include "elf/m32r.h" #include "elf/m68k.h" #include "elf/m68hc11.h" @@ -652,6 +653,8 @@ guess_is_rela (e_machine) case EM_MMIX: case EM_XSTORMY16: case EM_VAX: + case EM_IP2K: + case EM_IP2K_OLD: return TRUE; case EM_MMA: @@ -1127,6 +1130,11 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela) case EM_VAX: rtype = elf_vax_reloc_type (type); break; + + case EM_IP2K: + case EM_IP2K_OLD: + rtype = elf_ip2k_reloc_type (type); + break; } if (rtype == NULL) @@ -1569,6 +1577,8 @@ get_machine_name (e_machine) case EM_OPENRISC: case EM_OR32: return "OpenRISC"; case EM_DLX: return "OpenDLX"; + case EM_IP2K_OLD: + case EM_IP2K: return "Ubicom IP2xxx 8-bit microcontrollers"; default: sprintf (buff, _("<unknown>: %x"), e_machine); return buff; |