aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-12-23 19:10:25 +0000
committerNick Clifton <nickc@redhat.com>2008-12-23 19:10:25 +0000
commit84e94c9023c5d75f0ab10f9aa572003f9612b6ab (patch)
tree3751b6d7a3a336004ab82846b822b41c65e95699 /binutils
parent0cd530490f8751125412c6c061640752724537ed (diff)
downloadgdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.zip
gdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.tar.gz
gdb-84e94c9023c5d75f0ab10f9aa572003f9612b6ab.tar.bz2
Add LM32 port.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/MAINTAINERS1
-rw-r--r--binutils/readelf.c9
3 files changed, 15 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0507f62..df6af6c 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-23 Jon Beniston <jon@beniston.com>
+
+ * MAINTAINERS: Added Jon Beniston as maintainer for LM32 port.
+ * readelf.c: Add support for LM32 machine number.
+
2008-12-23 Kai Tietz <kai.tietz@onevision.com>
* rcparse.y (rcdata_data): Allow empty comma elements.
diff --git a/binutils/MAINTAINERS b/binutils/MAINTAINERS
index 14db3b5..7b5bc85 100644
--- a/binutils/MAINTAINERS
+++ b/binutils/MAINTAINERS
@@ -85,6 +85,7 @@ responsibility among the other maintainers.
ix86 PE Christopher Faylor <me+binutils@cgf.cx>
ix86 COFF DJ Delorie <dj@redhat.com>
ix86 INTEL MODE Jan Beulich <jbeulich@novell.com>
+ LM32 Jon Beniston <jon@beniston.com>
M68HC11 M68HC12 Stephane Carrez <stcarrez@nerim.fr>
M88k Mark Kettenis <kettenis@gnu.org>
MAXQ Inderpreet Singh <inderpreetb@noida.hcltech.com>
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. */