2 Header file for Elf convert solution
4 Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _ELF_CONVERT_H_
17 #define _ELF_CONVERT_H_
19 #include "elf_common.h"
24 // Externally defined variables
26 extern UINT32 mCoffOffset
;
27 extern CHAR8
*mInImageName
;
28 extern UINT32 mImageTimeStamp
;
29 extern UINT8
*mCoffFile
;
30 extern UINT32 mTableOffset
;
31 extern UINT32 mOutImageType
;
34 // Common EFI specific data.
36 #define ELF_HII_SECTION_NAME ".hii"
37 #define ELF_STRTAB_SECTION_NAME ".strtab"
38 #define MAX_COFF_ALIGNMENT 0x10000
48 } SECTION_FILTER_TYPES
;
54 VOID (*ScanSections
) ();
55 BOOLEAN (*WriteSections
) (SECTION_FILTER_TYPES FilterType
);
56 VOID (*WriteRelocations
) ();
57 VOID (*WriteDebug
) ();
58 VOID (*SetImageSize
) ();