2 IA-32 Specific relocation fixups.
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 Module Name: PeCoffLoaderEx.c
22 // Include common header file for this module.
24 #include "CommonHeader.h"
27 Performs an IA-32 specific relocation fixup.
29 @param Reloc Pointer to the relocation record.
30 @param Fixup Pointer to the address to fix up.
31 @param FixupData Pointer to a buffer to log the fixups.
32 @param Adjust The offset to adjust the fixup.
34 @retval EFI_UNSUPPORTED Unsupported now.
38 PeCoffLoaderRelocateImageEx (
41 IN OUT CHAR8
**FixupData
,
45 return RETURN_UNSUPPORTED
;
49 Returns TRUE if the machine type of PE/COFF image is supported. Supported
50 does not mean the image can be executed it means the PE/COFF loader supports
51 loading and relocating of the image type. It's up to the caller to support
54 This function implies the basic PE/COFF loader/relocator supports IA32, EBC,
55 & X64 images. Calling the entry point in a correct mannor is up to the
56 consumer of this library.
58 @param Machine Machine type from the PE Header.
60 @return TRUE if this PE/COFF loader can load the image
64 PeCoffLoaderImageFormatSupported (
68 if ((Machine
== EFI_IMAGE_MACHINE_IA32
) || (Machine
== EFI_IMAGE_MACHINE_X64
) ||
69 (Machine
== EFI_IMAGE_MACHINE_EBC
)) {
77 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
78 instruction sets. This is used to re-relocated the image into the EFI virtual
79 space for runtime calls.
81 @param Reloc Pointer to the relocation record.
82 @param Fixup Pointer to the address to fix up.
83 @param FixupData Pointer to a buffer to log the fixups.
84 @param Adjust The offset to adjust the fixup.
90 PeHotRelocateImageEx (
93 IN OUT CHAR8
**FixupData
,
97 return RETURN_UNSUPPORTED
;