]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Common/PeiLib/ia32/PeCoffLoaderEx.h
Initial import.
[mirror_edk2.git] / Tools / Source / TianoTools / Common / PeiLib / ia32 / 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 IA-32 Specific relocation fixups
19
20 Revision History
21
22 --*/
23
24 #ifndef _PE_COFF_LOADER_EX_H_
25 #define _PE_COFF_LOADER_EX_H_
26
27 //
28 // Define macro to determine if the machine type is supported.
29 // Returns 0 if the machine is not supported, Not 0 otherwise.
30 //
31 #define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) \
32 ((Machine) == EFI_IMAGE_MACHINE_IA32 || \
33 (Machine) == EFI_IMAGE_MACHINE_EBC)
34
35 EFI_STATUS
36 PeCoffLoaderRelocateImageEx (
37 IN UINT16 *Reloc,
38 IN OUT CHAR8 *Fixup,
39 IN OUT CHAR8 **FixupData,
40 IN UINT64 Adjust
41 )
42 /*++
43
44 Routine Description:
45
46 Performs an IA-32 specific relocation fixup
47
48 Arguments:
49
50 Reloc - Pointer to the relocation record
51
52 Fixup - Pointer to the address to fix up
53
54 FixupData - Pointer to a buffer to log the fixups
55
56 Adjust - The offset to adjust the fixup
57
58 Returns:
59
60 EFI_UNSUPPORTED - Unsupported now
61
62 --*/
63 ;
64
65 #endif