From 5506d11a077dc555735b393054250287552082d6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 22 Jul 2010 04:54:10 +0000 Subject: [PATCH] * readelf.c: Add Moxie support. --- binutils/ChangeLog | 4 ++++ binutils/readelf.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8e3ecb63a86..302d3165905 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2010-07-22 Alan Modra + + * readelf.c: Add Moxie support. + 2010-07-20 Alan Modra * readelf.c (process_program_headers): Don't ignore all zero size diff --git a/binutils/readelf.c b/binutils/readelf.c index 447932c3761..fd81d2db12b 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: -- 2.30.2