aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-01-09 17:21:17 +0000
committerNick Clifton <nickc@redhat.com>2006-01-09 17:21:17 +0000
commit64fd6348f0aa4d798bafae4b6c0baffb1a777b16 (patch)
tree1368a7bffd54d97cb24942cec73083ae15bbce4f /binutils
parent4dcb3903aa6c0c1cfcc88b850c7d91bf4d7d4d97 (diff)
downloadgdb-64fd6348f0aa4d798bafae4b6c0baffb1a777b16.zip
gdb-64fd6348f0aa4d798bafae4b6c0baffb1a777b16.tar.gz
gdb-64fd6348f0aa4d798bafae4b6c0baffb1a777b16.tar.bz2
Define EM_ALTERA_NIOS2 and EM_NIOS32.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 353af28..3c2b56a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-09 Mike Frysinger <vapier@gentoo.org>:
+
+ * readelf.c (guess_is_rela): Add case for Nios/Nios II.
+ (get_machine_name): Likewise.
+
2005-12-30 Jie Zhang <jie.zhang@analog.com>
* readelf.c (get_machine_name): Add case for Blackfin.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index ff243b9..b432b0b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1,5 +1,5 @@
/* readelf.c -- display contents of an ELF format file
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
Originally developed by Eric Youngdale <eric@andante.jic.com>
@@ -611,6 +611,8 @@ guess_is_rela (unsigned long e_machine)
case EM_M32C:
case EM_MT:
case EM_BLACKFIN:
+ case EM_NIOS32:
+ case EM_ALTERA_NIOS2:
return TRUE;
case EM_MMA:
@@ -1689,6 +1691,8 @@ get_machine_name (unsigned e_machine)
case EM_M32C: return "Renesas M32c";
case EM_MT: return "Morpho Techologies MT processor";
case EM_BLACKFIN: return "Analog Devices Blackfin";
+ case EM_NIOS32: return "Altera Nios";
+ case EM_ALTERA_NIOS2: return "Altera Nios II";
default:
snprintf (buff, sizeof (buff), _("<unknown>: %x"), e_machine);
return buff;