]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/PeCoffLib: Check 'RelocDir' before finding relocation block
authorHao Wu <hao.a.wu@intel.com>
Wed, 9 Nov 2016 04:06:29 +0000 (12:06 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 9 Nov 2016 08:25:25 +0000 (16:25 +0800)
commit49d8f534cc4280fa3f393dec5093b23b0c759c2c
treed56ab0e6af23147b94b981e239c9f4bf3cacd572
parent14e8137c8223f6d78135af6180b5e3145351da17
BaseTools/PeCoffLib: Check 'RelocDir' before finding relocation block

To match the code logics in MdePkg/Library/BasePeCoffLib, add checks for
'RelocDir' before finding the relocation block.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Common/BasePeCoff.c