[edk2] [Patch] BaseTools PeCoffLib: Fix the issue to get RelocationsStripped from TE image

2016-08-21 Thread Liming Gao
If PE image has no relocation section, and has not set RELOCS_STRIPPED, after it is converted to TE image, GenFw will set its relocation section VirtualAddress to non-zero address, and keep Size value as Zero. MdePkg BasePeCoffLib applied this rule to get RelocationsStripped attribute. But, it is

Re: [edk2] [PATCH] BaseTools/GenFv: allow TE/PE images with no .reloc section

2016-08-21 Thread Gao, Liming
Ard: If PE image has no relocation section, and has not set EFI_IMAGE_FILE_RELOCS_STRIPPED, after it is converted to TE image, GenFw will set its relocation section VirtualAddress to non-zero address, and keep Size value as Zero. If PE image is without relocation section, and set