mirror of https://github.com/acidanthera/audk.git
UefiPayloadPkg: Align relocation item with spec
Currently, FIT Payload data relocation data has some minor error with Universal Payload Specification v0.9.1 section 2.4.3. Signed-off-by: Gua Guo <gua.guo@intel.com>
This commit is contained in:
parent
222e2854fe
commit
14bfcc4021
|
@ -12,8 +12,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||
#include <Library/FdtLib.h>
|
||||
|
||||
typedef struct {
|
||||
UINT64 RelocateType;
|
||||
UINT64 Offset;
|
||||
UINT64 RelocateType;
|
||||
} FIT_RELOCATE_ITEM;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -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))
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue