mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-24 10:17:45 +02:00
ImageTool: Explicitly convert IR to XIP for PE emission
This commit is contained in:
parent
0bfa467344
commit
d27a576b86
@ -886,8 +886,15 @@ ToolImageEmitPe (
|
||||
|
||||
memset (&Context, 0, sizeof (Context));
|
||||
|
||||
Context.Image = Image;
|
||||
// FIXME: Non-XIP is not well-supported right now.
|
||||
Context.FileAlignment = Image->SegmentInfo.SegmentAlignment;
|
||||
Result = ImageConvertToXip ((image_tool_image_info_t *)Image);
|
||||
if (!Result) {
|
||||
raise ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Context.Image = Image;
|
||||
|
||||
Result = EmitPeGetHeaderSizes (Image, &Context.HdrInfo);
|
||||
if (!Result) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user