mirror of https://github.com/acidanthera/audk.git
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:
parent
3c4db2dfe2
commit
670bf6a722
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue