]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePeCoffExtraActionLibNull/PeCoffExtraActionLib.c
Rename library instance name from "PeCoffExtraActionLibNull" to "BasePeCoffExtraActio...
[mirror_edk2.git] / MdePkg / Library / BasePeCoffExtraActionLibNull / 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 /**
19 Applies additional actions to relocate fixups to a PE/COFF image.
20
21 Generally this function is called after sucessfully Applying relocation fixups
22 to a PE/COFF image for some specicial purpose.
23 As a example, For NT32 emulator, the function should be implemented and called
24 to support source level debug.
25
26 @param ImageContext Pointer to the image context structure that describes the PE/COFF
27 image that is being relocated.
28
29 **/
30 VOID
31 EFIAPI
32 PeCoffLoaderRelocateImageExtraAction (
33 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
34 )
35 {
36 }
37
38 /**
39 Unloads a loaded PE/COFF image from memory and releases its taken resource.
40
41 Releases any environment specific resources that were allocated when the image
42 specified by ImageContext was loaded using PeCoffLoaderLoadImage().
43 For NT32 emulator, the PE/COFF image loaded by system needs to release.
44 For real platform, the PE/COFF image loaded by Core doesn't needs to be unloaded,
45
46 If ImageContext is NULL, then ASSERT().
47
48 @param ImageContext Pointer to the image context structure that describes the PE/COFF
49 image to be unloaded.
50
51 **/
52 VOID
53 EFIAPI
54 PeCoffLoaderUnloadImageExtraAction (
55 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
56 )
57 {
58 }