summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-04-14 10:06:12 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-04-15 08:43:49 +0800
commit670bf6a7223125cf48c52a2ab272195fbc59e68a (patch)
treeec6a89543a20b70b1213fa7356983d6adf8f8686
parent3c4db2dfe2f1ea2cf8529671765111319bbadca4 (diff)
downloadedk2-platforms-670bf6a7223125cf48c52a2ab272195fbc59e68a.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>
-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;