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>
This commit is contained in:
James Lu 2022-07-10 22:05:31 -07:00 committed by mergify[bot]
parent e3d468acb9
commit 2677286307
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ RelocateElf32Dynamic (
} }
} }
if (RelaAddress == MAX_UINT64) { if (RelaAddress == MAX_UINT32) {
ASSERT (RelaCount == 0); ASSERT (RelaCount == 0);
ASSERT (RelaEntrySize == 0); ASSERT (RelaEntrySize == 0);
ASSERT (RelaSize == 0); ASSERT (RelaSize == 0);