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:
Yonghong Zhu 2016-04-14 10:04:55 +08:00
parent 67a69059f7
commit 3c4db2dfe2
1 changed files with 0 additions and 7 deletions

View File

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