]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/Ia32/PeCoffLoaderEx.c
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 IA-32 Specific relocation fixups.
23 #include "BasePeCoffLibInternals.h"
26 Performs an IA-32 specific relocation fixup.
28 @param Reloc Pointer to the relocation record.
29 @param Fixup Pointer to the address to fix up.
30 @param FixupData Pointer to a buffer to log the fixups.
31 @param Adjust The offset to adjust the fixup.
33 @retval EFI_UNSUPPORTED Unsupported now.
37 GluePeCoffLoaderRelocateImageEx (
40 IN OUT CHAR8
**FixupData
,
44 return RETURN_UNSUPPORTED
;
48 Returns TRUE if the machine type of PE/COFF image is supported. Supported
49 does not mean the image can be executed it means the PE/COFF loader supports
50 loading and relocating of the image type. It's up to the caller to support
53 This function implies the basic PE/COFF loader/relocator supports IA32, EBC,
54 & X64 images. Calling the entry point in a correct mannor is up to the
55 consumer of this library.
57 @param Machine Machine type from the PE Header.
59 @return TRUE if this PE/COFF loader can load the image
63 PeCoffLoaderImageFormatSupported (
67 if ((Machine
== EFI_IMAGE_MACHINE_IA32
) || (Machine
== EFI_IMAGE_MACHINE_X64
) ||
68 (Machine
== EFI_IMAGE_MACHINE_EBC
)) {
76 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
77 instruction sets. This is used to re-relocated the image into the EFI virtual
78 space for runtime calls.
80 @param Reloc Pointer to the relocation record.
81 @param Fixup Pointer to the address to fix up.
82 @param FixupData Pointer to a buffer to log the fixups.
83 @param Adjust The offset to adjust the fixup.
89 GluePeHotRelocateImageEx (
92 IN OUT CHAR8
**FixupData
,
96 return RETURN_UNSUPPORTED
;