]>
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 - 2008, 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.
15 #include "BasePeCoffLibInternals.h"
19 Performs an Itanium-based specific relocation fixup and is a no-op on other
22 @param Reloc Pointer to the relocation record.
23 @param Fixup Pointer to the address to fix up.
24 @param FixupData Pointer to a buffer to log the fixups.
25 @param Adjust The offset to adjust the fixup.
31 PeCoffLoaderRelocateImageEx (
34 IN OUT CHAR8
**FixupData
,
38 return RETURN_UNSUPPORTED
;
42 Returns TRUE if the machine type of PE/COFF image is supported. Supported
43 does not mean the image can be executed it means the PE/COFF loader supports
44 loading and relocating of the image type. It's up to the caller to support
47 @param Machine Machine type from the PE Header.
49 @return TRUE if this PE/COFF loader can load the image
53 PeCoffLoaderImageFormatSupported (
57 if ((Machine
== IMAGE_FILE_MACHINE_I386
) || (Machine
== IMAGE_FILE_MACHINE_X64
) ||
58 (Machine
== IMAGE_FILE_MACHINE_EBC
)) {
66 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
67 instruction sets. This is used to re-relocated the image into the EFI virtual
68 space for runtime calls.
70 @param Reloc Pointer to the relocation record.
71 @param Fixup Pointer to the address to fix up.
72 @param FixupData Pointer to a buffer to log the fixups.
73 @param Adjust The offset to adjust the fixup.
79 PeHotRelocateImageEx (
82 IN OUT CHAR8
**FixupData
,
86 return RETURN_UNSUPPORTED
;