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>
This commit is contained in:
Yonghong Zhu 2016-04-14 10:06:12 +08:00
parent 3c4db2dfe2
commit 670bf6a722

View File

@ -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.
//