]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/GenFvImage/Ia32/PeCoffLoaderEx.c
Porting several more tools to edk2.
[mirror_edk2.git] / Tools / Source / TianoTools / GenFvImage / Ia32 / PeCoffLoaderEx.c
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.c
15
16 Abstract:
17
18 IA-32 Specific relocation fixups
19
20 Revision History
21
22 --*/
23
24
25 #define EFI_SPECIFICATION_VERSION 0x00000000
26 #define EDK_RELEASE_VERSION 0x00020000
27 #include <Base.h>
28 #include <Library/PeCoffLib.h>
29 #include <Library/BaseMemoryLib.h>
30
31
32
33
34 RETURN_STATUS
35 PeCoffLoaderRelocateImageEx (
36 IN UINT16 *Reloc,
37 IN OUT CHAR8 *Fixup,
38 IN OUT CHAR8 **FixupData,
39 IN UINT64 Adjust
40 )
41 /*++
42
43 Routine Description:
44
45 Performs an IA-32 specific relocation fixup
46
47 Arguments:
48
49 Reloc - Pointer to the relocation record
50
51 Fixup - Pointer to the address to fix up
52
53 FixupData - Pointer to a buffer to log the fixups
54
55 Adjust - The offset to adjust the fixup
56
57 Returns:
58
59 EFI_UNSUPPORTED - Unsupported now
60
61 --*/
62 {
63 return RETURN_UNSUPPORTED;
64 }