]> git.proxmox.com Git - mirror_edk2.git/commit
UefiPayloadPkg: Fix RelaAddress type always mismatch in if condition
authorJames Lu <james.lu@intel.com>
Mon, 11 Jul 2022 05:05:31 +0000 (22:05 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 27 Jul 2022 17:00:40 +0000 (17:00 +0000)
commit2677286307c67b62c198cf6890d62ec540dd8c99
tree18583b8c8d3f7d7eac28d0ba4fc1b5c80d516edc
parente3d468acb9ce26a75fee45d742619ac1c6683280
UefiPayloadPkg: Fix RelaAddress type always mismatch in if condition

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3984

Under function RolocateElfDynamic() in Elf32Lib.c
if (RelaAddress == MAX_UINT64) is always FALSE while RelaAddress is UINT32
Fix is to  modify if condition check to "if (RelaAddress == MAX_UINT32)"

Cc: Ray Ni <ray.ni@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Gua Guo <gua.guo@intel.com>
Signed-off-by: James Lu <james.lu@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c