mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-23 17:57:45 +02:00
ImageTool: Correctly emit VirtualSize as ImageSize for non-XIP
This commit is contained in:
parent
d27a576b86
commit
1fc65bdb8d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user