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.
This commit is contained in:
John Darrington
2018-05-10 12:51:42 +01:00
committed by Nick Clifton
parent 8727de56b0
commit 637b19704c
4 changed files with 12 additions and 0 deletions

View File

@@ -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