2 Specific relocation fixups for ARM architecture.
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "BasePeCoffLibInternals.h"
20 Performs an ARM-based specific relocation fixup and is a no-op on other
23 @param Reloc The pointer to the relocation record.
24 @param Fixup The pointer to the address to fix up.
25 @param FixupData The pointer to a buffer to log the fixups.
26 @param Adjust The offset to adjust the fixup.
32 PeCoffLoaderRelocateImageEx (
35 IN OUT CHAR8
**FixupData
,
39 return RETURN_UNSUPPORTED
;
43 Returns TRUE if the machine type of PE/COFF image is supported. Supported
44 does not mean the image can be executed it means the PE/COFF loader supports
45 loading and relocating of the image type. It's up to the caller to support
48 The IA32/X64 version PE/COFF loader/relocater both support IA32, X64 and EBC images.
50 @param Machine Machine type from the PE Header.
52 @return TRUE if this PE/COFF loader can load the image
56 PeCoffLoaderImageFormatSupported (
60 if ((Machine
== IMAGE_FILE_MACHINE_ARMTHUMB_MIXED
) || (Machine
== IMAGE_FILE_MACHINE_EBC
)) {
68 Performs an ARM-based specific re-relocation fixup and is a no-op on other
69 instruction sets. This is used to re-relocated the image into the EFI virtual
70 space for runtime calls.
72 @param Reloc The pointer to the relocation record.
73 @param Fixup The pointer to the address to fix up.
74 @param FixupData The pointer to a buffer to log the fixups.
75 @param Adjust The offset to adjust the fixup.
81 PeHotRelocateImageEx (
84 IN OUT CHAR8
**FixupData
,
88 return RETURN_UNSUPPORTED
;