]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenFw: add new option to not zero PE/COFF optional header fields
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 11 Nov 2015 06:30:42 +0000 (06:30 +0000)
committeryzhu52 <yzhu52@Edk2>
Wed, 11 Nov 2015 06:30:42 +0000 (06:30 +0000)
commit30fbfcc92995c9103ec4357d313a566a7a6a6d92
treeac2b4fbb9f8754fe750c09442858e4fa68b1bd9b
parent9a12358cbe3b31441596a4eb36ebe9e6c94a130a
BaseTools/GenFw: add new option to not zero PE/COFF optional header fields

Add new option --keepoptionalheader and that flag does not zero PE/COFF
optional header fields including the version fields. It can support the
case that the PE/COFF optional header would be kept.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18767 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Source/C/GenFw/GenFw.c