summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-04-14 10:04:55 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-04-15 08:43:12 +0800
commit3c4db2dfe2f1ea2cf8529671765111319bbadca4 (patch)
treeaaf5380e82183e13e39d059af70b89ee2f6d8878 /BaseTools
parent67a69059f714c0728676d13d97f10bd12730b378 (diff)
downloadedk2-3c4db2dfe2f1ea2cf8529671765111319bbadca4.tar.gz
edk2-3c4db2dfe2f1ea2cf8529671765111319bbadca4.tar.bz2
edk2-3c4db2dfe2f1ea2cf8529671765111319bbadca4.zip
BaseTools/GenFw: Update to handle PE image with .code section only
current GenFw rebase the image which only has .code section, but no other section, the tool return error. this patch fix this bug to support it. 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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/GenFw/GenFw.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/BaseTools/Source/C/GenFw/GenFw.c b/BaseTools/Source/C/GenFw/GenFw.c
index 9ddd18e294..4a91df5d22 100644
--- a/BaseTools/Source/C/GenFw/GenFw.c
+++ b/BaseTools/Source/C/GenFw/GenFw.c
@@ -894,13 +894,6 @@ Returns:
}
//
- // No available section header is found.
- //
- if (Index == ImgHdr->Pe32.FileHeader.NumberOfSections) {
- return EFI_NOT_FOUND;
- }
-
- //
// BaseAddress is set to section header.
//
return EFI_SUCCESS;