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