ImageTool: Correctly emit VirtualSize as ImageSize for non-XIP

This commit is contained in:
Marvin Häuser 2023-04-02 14:38:55 +02:00
parent d27a576b86
commit 1fc65bdb8d

View File

@ -336,7 +336,7 @@ ToolImageEmitPeSectionHeaders (
Sections[Index].PointerToRawData = SectionOffset;
Sections[Index].VirtualAddress = SectionOffset;
Sections[Index].SizeOfRawData = ALIGN_VALUE (Image->SegmentInfo.Segments[Index].DataSize, Context->FileAlignment);
Sections[Index].VirtualSize = Sections[Index].SizeOfRawData;
Sections[Index].VirtualSize = Image->SegmentInfo.Segments[Index].ImageSize;
strncpy (
(char *) Sections[Index].Name,