aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-05-10 12:51:42 +0100
committerNick Clifton <nickc@redhat.com>2018-05-10 12:51:42 +0100
commit637b19704cf8325875de8df4f8b000197d261e3b (patch)
treec865bb5e04c4a5ce8e298cda2d5506c913f175a2 /binutils
parent8727de56b0dbe25b7b4a3bd04f72ac41992463ed (diff)
downloadgdb-637b19704cf8325875de8df4f8b000197d261e3b.zip
gdb-637b19704cf8325875de8df4f8b000197d261e3b.tar.gz
gdb-637b19704cf8325875de8df4f8b000197d261e3b.tar.bz2
Add support for detecting Freescale S12Z binaries in readelf.
* include/elf/common.h (EM_S12Z): New macro * binutils/readelf.c (get_machine_name): EM_S12Z - handle new case.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 26601b9..7235be2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2018-05-10 John Darrington <john@darrington.wattle.id.au>
+
+ * readelf.c (get_machine_name): EM_S12Z - handle new case.
+
2018-05-09 Alan Modra <amodra@gmail.com>
* od-macho.c (dump_unwind_encoding_x86): Fix typo in last patch.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 0c676f2..6a9c51d 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2495,6 +2495,7 @@ get_machine_name (unsigned e_machine)
case EM_CYGNUS_MEP: return "Toshiba MeP Media Engine";
case EM_ADAPTEVA_EPIPHANY: return "Adapteva EPIPHANY";
case EM_CYGNUS_FRV: return "Fujitsu FR-V";
+ case EM_S12Z: return "Freescale S12Z";
default:
snprintf (buff, sizeof (buff), _("<unknown>: 0x%x"), e_machine);