]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools PeCoffLib: Fix the issue to get RelocationsStripped from TE image
authorLiming Gao <liming.gao@intel.com>
Mon, 22 Aug 2016 03:09:01 +0000 (11:09 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 22 Aug 2016 07:54:42 +0000 (15:54 +0800)
commit8866d337ea9eba258e942585b172d57d39376e70
treed0b4f7831d43276c61e8caa9ef8a5203345d2059
parentd36447418d32d82c4d1033ffcf5cb6244031ac9f
BaseTools PeCoffLib: Fix the issue to get RelocationsStripped from TE image

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 missing in BaseTools BasePeCoffLib.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
BaseTools/Source/C/Common/BasePeCoff.c