diff options
author | Nick Clifton <nickc@redhat.com> | 2008-12-23 19:10:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-12-23 19:10:25 +0000 |
commit | 84e94c9023c5d75f0ab10f9aa572003f9612b6ab (patch) | |
tree | 3751b6d7a3a336004ab82846b822b41c65e95699 /binutils/readelf.c | |
parent | 0cd530490f8751125412c6c061640752724537ed (diff) | |
download | gdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.zip gdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.tar.gz gdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.tar.bz2 |
Add LM32 port.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 21af7b3..38da0b6 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -130,6 +130,7 @@ #include "elf/i960.h" #include "elf/ia64.h" #include "elf/ip2k.h" +#include "elf/lm32.h" #include "elf/iq2000.h" #include "elf/m32c.h" #include "elf/m32r.h" @@ -598,6 +599,7 @@ guess_is_rela (unsigned int e_machine) case EM_IP2K: case EM_IP2K_OLD: case EM_IQ2000: + case EM_LATTICEMICO32: case EM_M32C_OLD: case EM_M32C: case EM_M32R: @@ -1186,6 +1188,10 @@ dump_relocations (FILE *file, rtype = elf_xtensa_reloc_type (type); break; + case EM_LATTICEMICO32: + rtype = elf_lm32_reloc_type (type); + break; + case EM_M32C_OLD: case EM_M32C: rtype = elf_m32c_reloc_type (type); @@ -1833,6 +1839,7 @@ get_machine_name (unsigned e_machine) case EM_IQ2000: return "Vitesse IQ2000"; case EM_XTENSA_OLD: case EM_XTENSA: return "Tensilica Xtensa Processor"; + case EM_LATTICEMICO32: return "Lattice Mico32"; case EM_M32C_OLD: case EM_M32C: return "Renesas M32c"; case EM_MT: return "Morpho Techologies MT processor"; @@ -8082,6 +8089,8 @@ is_32bit_abs_reloc (unsigned int reloc_type) return reloc_type == 2; /* R_IP2K_32. */ case EM_IQ2000: return reloc_type == 2; /* R_IQ2000_32. */ + case EM_LATTICEMICO32: + return reloc_type == 3; /* R_LM32_32. */ case EM_M32C_OLD: case EM_M32C: return reloc_type == 3; /* R_M32C_32. */ |