]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c
2 Specific relocation fixups for none Itanium architecture.
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BasePeCoffLibInternals.h"
12 Performs an Itanium-based specific relocation fixup and is a no-op on other
15 @param Reloc The pointer to the relocation record.
16 @param Fixup The pointer to the address to fix up.
17 @param FixupData The pointer to a buffer to log the fixups.
18 @param Adjust The offset to adjust the fixup.
24 PeCoffLoaderRelocateImageEx (
27 IN OUT CHAR8
**FixupData
,
31 return RETURN_UNSUPPORTED
;
35 Returns TRUE if the machine type of PE/COFF image is supported. Supported
36 does not mean the image can be executed it means the PE/COFF loader supports
37 loading and relocating of the image type. It's up to the caller to support
40 The IA32/X64 version PE/COFF loader/relocater both support IA32, X64 and EBC images.
42 @param Machine The machine type from the PE Header.
44 @return TRUE if this PE/COFF loader can load the image
48 PeCoffLoaderImageFormatSupported (
52 if ((Machine
== IMAGE_FILE_MACHINE_I386
) || (Machine
== IMAGE_FILE_MACHINE_X64
) ||
53 (Machine
== IMAGE_FILE_MACHINE_EBC
) || (Machine
== IMAGE_FILE_MACHINE_ARM64
))
62 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
63 instruction sets. This is used to re-relocated the image into the EFI virtual
64 space for runtime calls.
66 @param Reloc The pointer to the relocation record.
67 @param Fixup The pointer to the address to fix up.
68 @param FixupData The pointer to a buffer to log the fixups.
69 @param Adjust The offset to adjust the fixup.
75 PeHotRelocateImageEx (
78 IN OUT CHAR8
**FixupData
,
82 return RETURN_UNSUPPORTED
;