diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2025-01-29 11:01:04 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-07 02:23:11 +0000 |
commit | efbf5ed08c48478b51bb6b6da5670b1312755854 (patch) | |
tree | c8ce7edc440fd741346704dd9b6873722451c78c /OvmfPkg | |
parent | db03bf1d9dd7741571fbd9ad597add36ef4250d5 (diff) | |
download | edk2-efbf5ed08c48478b51bb6b6da5670b1312755854.tar.gz |
MdePkg: Move StackCheckLibStaticInit to StackCheckLib
This commit oves StackCheckLib from a NULL lib to an instance of
StackCheckLib. This requires every entry point to add a library
dependency on StackCheckLib. It also requires every SEC module
to have a dependency on StackCheckLib because there is no
standard SEC entry point.
It allows for greater flexibility for a platform to apply stack
cookies and simplifies DSC logic.
Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/IntelTdx/Sec/SecMain.inf | 1 | ||||
-rw-r--r-- | OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf | 1 | ||||
-rw-r--r-- | OvmfPkg/LoongArchVirt/Sec/SecMain.inf | 1 | ||||
-rw-r--r-- | OvmfPkg/RiscVVirt/Sec/SecMain.inf | 1 | ||||
-rw-r--r-- | OvmfPkg/Sec/SecMain.inf | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/IntelTdx/Sec/SecMain.inf b/OvmfPkg/IntelTdx/Sec/SecMain.inf index cf95284f02..a9ba5c8f78 100644 --- a/OvmfPkg/IntelTdx/Sec/SecMain.inf +++ b/OvmfPkg/IntelTdx/Sec/SecMain.inf @@ -50,6 +50,7 @@ PeilessStartupLib
PlatformInitLib
CcProbeLib
+ StackCheckLib
[Pcd]
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase
diff --git a/OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf b/OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf index 19985b8c29..c72e701c96 100644 --- a/OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf +++ b/OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf @@ -31,6 +31,7 @@ DebugLib
QemuFwCfgSimpleParserLib
UefiBootServicesTableLib
+ StackCheckLib
[Protocols]
gEfiLoadedImageProtocolGuid ## SOMETIMES_CONSUMES
diff --git a/OvmfPkg/LoongArchVirt/Sec/SecMain.inf b/OvmfPkg/LoongArchVirt/Sec/SecMain.inf index afa0ff8fd1..82d2f803d6 100644 --- a/OvmfPkg/LoongArchVirt/Sec/SecMain.inf +++ b/OvmfPkg/LoongArchVirt/Sec/SecMain.inf @@ -40,6 +40,7 @@ PeCoffGetEntryPointLib
PeCoffExtraActionLib
PeiServicesLib
+ StackCheckLib
[Ppis]
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED
diff --git a/OvmfPkg/RiscVVirt/Sec/SecMain.inf b/OvmfPkg/RiscVVirt/Sec/SecMain.inf index 73df0ee4cb..5a8cc49721 100644 --- a/OvmfPkg/RiscVVirt/Sec/SecMain.inf +++ b/OvmfPkg/RiscVVirt/Sec/SecMain.inf @@ -49,6 +49,7 @@ MemoryAllocationLib
HobLib
SerialPortLib
+ StackCheckLib
[Ppis]
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED
diff --git a/OvmfPkg/Sec/SecMain.inf b/OvmfPkg/Sec/SecMain.inf index 88c2d3fb6d..4a91fb2bbb 100644 --- a/OvmfPkg/Sec/SecMain.inf +++ b/OvmfPkg/Sec/SecMain.inf @@ -56,6 +56,7 @@ CpuExceptionHandlerLib
CcProbeLib
CpuPageTableLib
+ StackCheckLib
[Ppis]
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED
|