]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenFw: enhance to use Magic Field to identify the image
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 12 May 2016 06:22:56 +0000 (14:22 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 16 May 2016 01:06:05 +0000 (09:06 +0800)
commit849e54aa6400b220fad8af32d3d329117e0ceac8
tree7a79b27f921c62c848d2197061899600f8c3d757
parent4ce415e55d93a9ae9fa1fbd6b40080877ae5f23b
BaseTools/GenFw: enhance to use Magic Field to identify the image

Original use the File Header Machine Field to identify
EFI_IMAGE_OPTIONAL_HEADER32 or EFI_IMAGE_OPTIONAL_HEADER64, it cannot
correctly handle EBC arch PE32 image.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/GenFw/GenFw.c