From 670bf6a7223125cf48c52a2ab272195fbc59e68a Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Thu, 14 Apr 2016 10:06:12 +0800 Subject: [PATCH] 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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/C/VolInfo/VolInfo.c | 7 ------- 1 file changed, 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 @@ -1382,13 +1382,6 @@ Returns: } } - // - // No available section header is found. - // - if (Index == ImgHdr->Pe32.FileHeader.NumberOfSections) { - return EFI_NOT_FOUND; - } - // // BaseAddress is set to section header. //