]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/Common/PeiLib/Ipf/PeCoffLoaderEx.h
Add <FrameworkModules> in EdkModulePkg-All-Archs.fpd and MdePkg-All-Archs.fpd file...
[mirror_edk2.git] / Tools / Source / TianoTools / Common / PeiLib / Ipf / PeCoffLoaderEx.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 PeCoffLoaderEx.h\r
15\r
16Abstract:\r
17\r
18 Fixes Intel Itanium(TM) specific relocation types\r
19\r
20\r
21Revision History\r
22\r
23--*/\r
24\r
25#ifndef _PE_COFF_LOADER_EX_H_\r
26#define _PE_COFF_LOADER_EX_H_\r
27\r
28//\r
29// Define macro to determine if the machine type is supported.\r
30// Returns 0 if the machine is not supported, Not 0 otherwise.\r
31//\r
32#define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) \\r
33 ((Machine) == EFI_IMAGE_MACHINE_IA64 || \\r
34 (Machine) == EFI_IMAGE_MACHINE_EBC)\r
35\r
36\r
37EFI_STATUS\r
38PeCoffLoaderRelocateImageEx (\r
39 IN UINT16 *Reloc,\r
40 IN OUT CHAR8 *Fixup,\r
41 IN OUT CHAR8 **FixupData,\r
42 IN UINT64 Adjust\r
43 )\r
44/*++\r
45\r
46Routine Description:\r
47\r
48 Performs an Itanium-based specific relocation fixup\r
49\r
50Arguments:\r
51\r
52 Reloc - Pointer to the relocation record\r
53\r
54 Fixup - Pointer to the address to fix up\r
55\r
56 FixupData - Pointer to a buffer to log the fixups\r
57\r
58 Adjust - The offset to adjust the fixup\r
59\r
60Returns:\r
61\r
62 Status code\r
63\r
64--*/\r
65;\r
66\r
67#endif\r