diff options
author | Alan Modra <amodra@gmail.com> | 2010-07-22 04:54:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-07-22 04:54:10 +0000 |
commit | 5506d11a077dc555735b393054250287552082d6 (patch) | |
tree | 66192da6042f77e9f27c76a5c89c2ec19b475f5c /binutils | |
parent | dad7c6801240221078caa0927b1719eb96cdc83a (diff) | |
download | gdb-5506d11a077dc555735b393054250287552082d6.zip gdb-5506d11a077dc555735b393054250287552082d6.tar.gz gdb-5506d11a077dc555735b393054250287552082d6.tar.bz2 |
* readelf.c: Add Moxie support.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8e3ecb6..302d316 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2010-07-22 Alan Modra <amodra@gmail.com> + + * readelf.c: Add Moxie support. + 2010-07-20 Alan Modra <amodra@gmail.com> * readelf.c (process_program_headers): Don't ignore all zero size diff --git a/binutils/readelf.c b/binutils/readelf.c index 447932c..fd81d2d 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -125,6 +125,7 @@ #include "elf/mmix.h" #include "elf/mn10200.h" #include "elf/mn10300.h" +#include "elf/moxie.h" #include "elf/mt.h" #include "elf/msp430.h" #include "elf/or32.h" @@ -646,6 +647,7 @@ guess_is_rela (unsigned int e_machine) case EM_CYGNUS_MN10200: case EM_MN10300: case EM_CYGNUS_MN10300: + case EM_MOXIE: case EM_MSP430: case EM_MSP430_OLD: case EM_MT: @@ -1130,6 +1132,10 @@ dump_relocations (FILE * file, rtype = elf_mmix_reloc_type (type); break; + case EM_MOXIE: + rtype = elf_moxie_reloc_type (type); + break; + case EM_MSP430: case EM_MSP430_OLD: rtype = elf_msp430_reloc_type (type); @@ -1906,6 +1912,7 @@ get_machine_name (unsigned e_machine) case EM_MN10300: return "mn10300"; case EM_CYGNUS_MN10200: case EM_MN10200: return "mn10200"; + case EM_MOXIE: return "Moxie"; case EM_CYGNUS_FR30: case EM_FR30: return "Fujitsu FR30"; case EM_CYGNUS_FRV: return "Fujitsu FR-V"; @@ -9240,6 +9247,8 @@ is_32bit_abs_reloc (unsigned int reloc_type) case EM_CYGNUS_MN10300: case EM_MN10300: return reloc_type == 1; /* R_MN10300_32. */ + case EM_MOXIE: + return reloc_type == 1; /* R_MOXIE_32. */ case EM_MSP430_OLD: case EM_MSP430: return reloc_type == 1; /* R_MSP43_32. */ @@ -9501,6 +9510,7 @@ is_none_reloc (unsigned int reloc_type) case EM_X86_64: /* R_X86_64_NONE. */ case EM_L1OM: /* R_X86_64_NONE. */ case EM_MN10300: /* R_MN10300_NONE. */ + case EM_MOXIE: /* R_MOXIE_NONE. */ case EM_M32R: /* R_M32R_NONE. */ case EM_TI_C6000:/* R_C6000_NONE. */ case EM_XC16X: |