]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeCoffExtraActionLibNull/PeCoffExtraActionLib.c
Rename library instance name from "PeCoffExtraActionLibNull" to "BasePeCoffExtraActio...
[mirror_edk2.git] / MdePkg / Library / PeCoffExtraActionLibNull / PeCoffExtraActionLib.c
1 /** @file
2 Null PE/Coff Extra Action library instances with empty functions.
3
4 Copyright (c) 2006 - 2008, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include <Base.h>
16 #include <Library/PeCoffExtraActionLib.h>
17 /**
18 Applies additional actions to relocate fixups to a PE/COFF image.
19
20 Generally this function is called after sucessfully Applying relocation fixups
21 to a PE/COFF image for some specicial purpose.
22 As a example, For NT32 emulator, the function should be implemented and called
23 to support source level debug.
24
25 @param ImageContext Pointer to the image context structure that describes the PE/COFF
26 image that is being relocated.
27
28 **/
29 VOID
30 EFIAPI
31 PeCoffLoaderRelocateImageExtraAction (
32 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
33 )
34 {
35 }
36
37 /**
38 Unloads a loaded PE/COFF image from memory and releases its taken resource.
39
40 Releases any environment specific resources that were allocated when the image
41 specified by ImageContext was loaded using PeCoffLoaderLoadImage().
42 For NT32 emulator, the PE/COFF image loaded by system needs to release.
43 For real platform, the PE/COFF image loaded by Core doesn't needs to be unloaded,
44
45 If ImageContext is NULL, then ASSERT().
46
47 @param ImageContext Pointer to the image context structure that describes the PE/COFF
48 image to be unloaded.
49
50 **/
51 VOID
52 EFIAPI
53 PeCoffLoaderUnloadImageExtraAction (
54 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
55 )
56 {
57 }