aboutsummaryrefslogtreecommitdiff
path: root/include/elf/common.h
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 /include/elf/common.h
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 'include/elf/common.h')
-rw-r--r--include/elf/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/elf/common.h b/include/elf/common.h
index ae4a7b2..773f378 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -368,6 +368,9 @@
/* Unofficial value for Web Assembly binaries, as used by LLVM. */
#define EM_WEBASSEMBLY 0x4157
+/* Freescale S12Z. The Freescale toolchain generates elf files with this value. */
+#define EM_S12Z 0x4DEF
+
/* DLX magic number. Written in the absense of an ABI. */
#define EM_DLX 0x5aa5