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