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