diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-14 10:04:55 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-15 08:43:12 +0800 |
commit | 3c4db2dfe2f1ea2cf8529671765111319bbadca4 (patch) | |
tree | aaf5380e82183e13e39d059af70b89ee2f6d8878 | |
parent | 67a69059f714c0728676d13d97f10bd12730b378 (diff) | |
download | edk2-platforms-3c4db2dfe2f1ea2cf8529671765111319bbadca4.tar.xz |
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>
-rw-r--r-- | BaseTools/Source/C/GenFw/GenFw.c | 7 |
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;
|