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>
#include <Library/FdtLib.h>\r
\r
typedef struct {\r
- UINT64 RelocateType;\r
UINT64 Offset;\r
+ UINT64 RelocateType;\r
} FIT_RELOCATE_ITEM;\r
\r
typedef struct {\r
continue\r
Type = entry.type\r
Offset = entry.rva + fit_image_info_header.DataOffset\r
- RelocBinary += Type.to_bytes (8, 'little') + Offset.to_bytes (8, 'little')\r
+ RelocBinary += Offset.to_bytes (8, 'little') + Type.to_bytes (8, 'little')\r
RelocBinary += b'\x00' * (0x1000 - (len(RelocBinary) % 0x1000))\r
\r
#\r