]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
MdePkg/BasePeCoff: Add RISC-V PE/Coff related code.
[mirror_edk2.git] / MdePkg / Library / BasePeCoffLib / BasePeCoffLib.inf
1 ## @file
2 # PE/COFF Loader Library implementation.
3 # The IPF version library supports loading IPF and EBC PE/COFF image.
4 # The IA32 version library support loading IA32, X64 and EBC PE/COFF images.
5 # The X64 version library support loading IA32, X64 and EBC PE/COFF images.
6 # The RISC-V version library support loading RISC-V images.
7 #
8 # Caution: This module requires additional review when modified.
9 # This library will have external input - PE/COFF image.
10 # This external input must be validated carefully to avoid security issue like
11 # buffer overflow, integer overflow.
12 #
13 # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
14 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
15 # Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
16 #
17 # SPDX-License-Identifier: BSD-2-Clause-Patent
18 #
19 #
20 ##
21
22 [Defines]
23 INF_VERSION = 0x00010005
24 BASE_NAME = BasePeCoffLib
25 MODULE_UNI_FILE = BasePeCoffLib.uni
26 FILE_GUID = 556f5d10-7309-4af4-b80a-8196bd60946f
27 MODULE_TYPE = BASE
28 VERSION_STRING = 1.0
29 LIBRARY_CLASS = PeCoffLib
30
31
32 #
33 # VALID_ARCHITECTURES = IA32 X64 EBC ARM AARCH64
34 #
35
36 [Sources]
37 BasePeCoffLibInternals.h
38 BasePeCoff.c
39
40 [Sources.IA32, Sources.X64, Sources.EBC, Sources.AARCH64]
41 PeCoffLoaderEx.c
42
43 [Sources.ARM]
44 Arm/PeCoffLoaderEx.c
45
46 [Sources.RISCV64]
47 RiscV/PeCoffLoaderEx.c
48
49 [Packages]
50 MdePkg/MdePkg.dec
51
52 [LibraryClasses]
53 DebugLib
54 PeCoffExtraActionLib
55 BaseMemoryLib
56