mirror of https://github.com/acidanthera/audk.git
BaseTools/GenFw: Update to handle PE image with .code section only
current GenFw 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
67a69059f7
commit
3c4db2dfe2
|
@ -893,13 +893,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