diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-14 10:04:55 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 09:31:51 +0800 |
commit | af8ccbe929268188fa5f25775b59b17b69ad867d (patch) | |
tree | da3d8943d992e2fa5a9cbd9585ad35a7ec59e88c /BaseTools/Source/C | |
parent | f89dc9b6586a7bfedc6521d41a28fbef8f5d6405 (diff) | |
download | edk2-platforms-af8ccbe929268188fa5f25775b59b17b69ad867d.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>
(cherry picked from commit 3c4db2dfe2f1ea2cf8529671765111319bbadca4)
Diffstat (limited to 'BaseTools/Source/C')
-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;
|