]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c
Minor grammatical work--mostly adding periods. Items with ONLY period added did...
[mirror_edk2.git] / MdePkg / Library / BasePeCoffLib / Arm / PeCoffLoaderEx.c
CommitLineData
ebd04fc2 1/** @file\r
2 Specific relocation fixups for ARM architecture.\r
3\r
acf57dec
HT
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
5 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
6 This program and the accompanying materials\r
ebd04fc2 7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
2fc59a00 9 http://opensource.org/licenses/bsd-license.php.\r
ebd04fc2 10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "BasePeCoffLibInternals.h"\r
17\r
18\r
19/**\r
20 Performs an ARM-based specific relocation fixup and is a no-op on other\r
21 instruction sets.\r
22\r
2fc59a00 23 @param Reloc The pointer to the relocation record.\r
24 @param Fixup The pointer to the address to fix up.\r
25 @param FixupData The pointer to a buffer to log the fixups.\r
ebd04fc2 26 @param Adjust The offset to adjust the fixup.\r
27\r
28 @return Status code.\r
29\r
30**/\r
31RETURN_STATUS\r
32PeCoffLoaderRelocateImageEx (\r
33 IN UINT16 *Reloc,\r
34 IN OUT CHAR8 *Fixup,\r
35 IN OUT CHAR8 **FixupData,\r
36 IN UINT64 Adjust\r
37 )\r
38{\r
39 return RETURN_UNSUPPORTED;\r
40}\r
41\r
42/**\r
43 Returns TRUE if the machine type of PE/COFF image is supported. Supported\r
44 does not mean the image can be executed it means the PE/COFF loader supports\r
45 loading and relocating of the image type. It's up to the caller to support\r
46 the entry point.\r
47 \r
48 The IA32/X64 version PE/COFF loader/relocater both support IA32, X64 and EBC images.\r
49\r
50 @param Machine Machine type from the PE Header.\r
51\r
52 @return TRUE if this PE/COFF loader can load the image\r
53\r
54**/\r
55BOOLEAN\r
56PeCoffLoaderImageFormatSupported (\r
57 IN UINT16 Machine\r
58 )\r
59{\r
60 if ((Machine == IMAGE_FILE_MACHINE_ARMTHUMB_MIXED) || (Machine == IMAGE_FILE_MACHINE_EBC)) {\r
61 return TRUE; \r
62 }\r
63\r
64 return FALSE;\r
65}\r
66\r
67/**\r
68 Performs an ARM-based specific re-relocation fixup and is a no-op on other\r
69 instruction sets. This is used to re-relocated the image into the EFI virtual\r
70 space for runtime calls.\r
71\r
2fc59a00 72 @param Reloc The pointer to the relocation record.\r
73 @param Fixup The pointer to the address to fix up.\r
74 @param FixupData The pointer to a buffer to log the fixups.\r
ebd04fc2 75 @param Adjust The offset to adjust the fixup.\r
76\r
77 @return Status code.\r
78\r
79**/\r
80RETURN_STATUS\r
81PeHotRelocateImageEx (\r
82 IN UINT16 *Reloc,\r
83 IN OUT CHAR8 *Fixup,\r
84 IN OUT CHAR8 **FixupData,\r
85 IN UINT64 Adjust\r
86 )\r
87{\r
88 return RETURN_UNSUPPORTED;\r
89}\r
90\r