diff --git a/UefiPayloadPkg/PayloadLoaderPeim/FitLib.h b/UefiPayloadPkg/PayloadLoaderPeim/FitLib.h index 6a93b4159011..05b790b42e2f 100644 --- a/UefiPayloadPkg/PayloadLoaderPeim/FitLib.h +++ b/UefiPayloadPkg/PayloadLoaderPeim/FitLib.h @@ -12,8 +12,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include typedef struct { - UINT64 RelocateType; UINT64 Offset; + UINT64 RelocateType; } FIT_RELOCATE_ITEM; typedef struct { diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/UniversalPayloadBuild.py index 59c78a21b405..c3d02cbc2915 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -269,7 +269,7 @@ def BuildUniversalPayload(Args): continue Type = entry.type Offset = entry.rva + fit_image_info_header.DataOffset - RelocBinary += Type.to_bytes (8, 'little') + Offset.to_bytes (8, 'little') + RelocBinary += Offset.to_bytes (8, 'little') + Type.to_bytes (8, 'little') RelocBinary += b'\x00' * (0x1000 - (len(RelocBinary) % 0x1000)) #