summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-04-14 10:06:12 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-13 09:31:55 +0800
commit72612dcb598dfb25ee525fde93afde503892d1eb (patch)
tree7edf4aefa018a74d790aaf61dda9883e9c90b2b0 /BaseTools
parentaf8ccbe929268188fa5f25775b59b17b69ad867d (diff)
downloadedk2-platforms-72612dcb598dfb25ee525fde93afde503892d1eb.tar.xz
BaseTools/VolInfo: Update to handle PE image with .code section only
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 670bf6a7223125cf48c52a2ab272195fbc59e68a)
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/VolInfo/VolInfo.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c
index 5c4a5036c2..3a2686a58f 100644
--- a/BaseTools/Source/C/VolInfo/VolInfo.c
+++ b/BaseTools/Source/C/VolInfo/VolInfo.c
@@ -1383,13 +1383,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;