diff options
author | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2008-06-18 10:49:50 +0000 |
---|---|---|
committer | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2008-06-18 10:49:50 +0000 |
commit | 6c03b1edc82f1e0033f93fbda705085786081b75 (patch) | |
tree | 5f8a3124fac9909db2bc9c8a5cb1647873080f0a /binutils | |
parent | 7488902c738b0d8352fa414ee89e1b5537e13c87 (diff) | |
download | gdb-6c03b1edc82f1e0033f93fbda705085786081b75.zip gdb-6c03b1edc82f1e0033f93fbda705085786081b75.tar.gz gdb-6c03b1edc82f1e0033f93fbda705085786081b75.tar.bz2 |
(guess_is_rela): Add EM_CR16_OLD.
(dump_relocations): Likewise.
(get_machine_name): Likewise.
(is_32bit_abs_reloc): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/readelf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 953350a..8c9003b 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -703,6 +703,7 @@ guess_is_rela (unsigned int e_machine) case EM_AVR_OLD: case EM_BLACKFIN: case EM_CR16: + case EM_CR16_OLD: case EM_CRIS: case EM_CRX: case EM_D30V: @@ -1299,6 +1300,7 @@ dump_relocations (FILE *file, break; case EM_CR16: + case EM_CR16_OLD: rtype = elf_cr16_reloc_type (type); break; } @@ -1924,7 +1926,8 @@ get_machine_name (unsigned e_machine) case EM_ALTERA_NIOS2: return "Altera Nios II"; case EM_XC16X: return "Infineon Technologies xc16x"; case EM_CYGNUS_MEP: return "Toshiba MeP Media Engine"; - case EM_CR16: return "National Semiconductor's CR16"; + case EM_CR16: + case EM_CR16_OLD: return "National Semiconductor's CR16"; default: snprintf (buff, sizeof (buff), _("<unknown>: 0x%x"), e_machine); return buff; @@ -8129,6 +8132,7 @@ is_32bit_abs_reloc (unsigned int reloc_type) case EM_CRIS: return reloc_type == 3; /* R_CRIS_32. */ case EM_CR16: + case EM_CR16_OLD: return reloc_type == 3; /* R_CR16_NUM32. */ case EM_CRX: return reloc_type == 15; /* R_CRX_NUM32. */ |