]>
Commit | Line | Data |
---|---|---|
27b2d249 | 1 | /** @file\r |
2 | Null PE/Coff Extra Action library instances with empty functions.\r | |
3 | \r | |
9095d37b | 4 | Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
27b2d249 | 6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include <Base.h>\r | |
10 | #include <Library/PeCoffExtraActionLib.h>\r | |
727fb9b1 | 11 | #include <Library/DebugLib.h>\r |
48f3634e | 12 | \r |
27b2d249 | 13 | /**\r |
727fb9b1 | 14 | Performs additional actions after a PE/COFF image has been loaded and relocated.\r |
27b2d249 | 15 | \r |
727fb9b1 | 16 | If ImageContext is NULL, then ASSERT().\r |
17 | \r | |
2fc59a00 | 18 | @param ImageContext The pointer to the image context structure that describes the\r |
727fb9b1 | 19 | PE/COFF image that has already been loaded and relocated.\r |
27b2d249 | 20 | \r |
21 | **/\r | |
22 | VOID\r | |
23 | EFIAPI\r | |
24 | PeCoffLoaderRelocateImageExtraAction (\r | |
25 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
26 | )\r | |
27 | {\r | |
727fb9b1 | 28 | ASSERT (ImageContext != NULL);\r |
9095d37b | 29 | }\r |
27b2d249 | 30 | \r |
31 | /**\r | |
727fb9b1 | 32 | Performs additional actions just before a PE/COFF image is unloaded. Any resources\r |
33 | that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.\r | |
9095d37b | 34 | \r |
27b2d249 | 35 | If ImageContext is NULL, then ASSERT().\r |
9095d37b | 36 | \r |
2fc59a00 | 37 | @param ImageContext The pointer to the image context structure that describes the\r |
727fb9b1 | 38 | PE/COFF image that is being unloaded.\r |
27b2d249 | 39 | \r |
40 | **/\r | |
41 | VOID\r | |
42 | EFIAPI\r | |
43 | PeCoffLoaderUnloadImageExtraAction (\r | |
44 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
45 | )\r | |
46 | {\r | |
727fb9b1 | 47 | ASSERT (ImageContext != NULL);\r |
fd444030 | 48 | }\r |