]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/VolInfo: Update to handle PE image with .code section only
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 14 Apr 2016 02:06:12 +0000 (10:06 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Fri, 15 Apr 2016 00:43:49 +0000 (08:43 +0800)
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>
BaseTools/Source/C/VolInfo/VolInfo.c

index 5c4a5036c225c1f306a466a580af06c0b85d3e72..3a2686a58f514670e8d4a8fec06eb2199407318c 100644 (file)
@@ -1382,13 +1382,6 @@ Returns:
     }\r
   }\r
 \r
-  //\r
-  // No available section header is found.\r
-  //\r
-  if (Index == ImgHdr->Pe32.FileHeader.NumberOfSections) {\r
-    return EFI_NOT_FOUND;\r
-  }\r
-\r
   //\r
   // BaseAddress is set to section header.\r
   //\r