2 Important data type defined used for Memory Only PE COFF loader.
4 Copyright (c) 2007, Intel Corporation
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
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.
15 #ifndef __PECOFFLOADER_IMAGE_CONTEXT_H
16 #define __PECOFFLOADER_IMAGE_CONTEXT_H
19 // PE/COFF Loader Read Function passed in by caller
23 (EFIAPI
*PE_COFF_LOADER_READ_FILE
) (
26 IN OUT UINTN
*ReadSize
,
31 // Context structure used while PE/COFF image is being loaded and relocated
34 PHYSICAL_ADDRESS ImageAddress
;
36 PHYSICAL_ADDRESS DestinationAddress
;
37 PHYSICAL_ADDRESS EntryPoint
;
38 PE_COFF_LOADER_READ_FILE ImageRead
;
41 UINT32 SectionAlignment
;
42 UINT32 PeCoffHeaderOffset
;
43 UINT32 DebugDirectoryEntryRva
;
47 UINT32 ImageCodeMemoryType
;
48 UINT32 ImageDataMemoryType
;
53 BOOLEAN RelocationsStripped
;
55 } PE_COFF_LOADER_IMAGE_CONTEXT
;