summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorOliver Smith-Denny <osde@microsoft.com>2025-01-29 11:01:04 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-02-07 02:23:11 +0000
commitefbf5ed08c48478b51bb6b6da5670b1312755854 (patch)
treec8ce7edc440fd741346704dd9b6873722451c78c /MdeModulePkg
parentdb03bf1d9dd7741571fbd9ad597add36ef4250d5 (diff)
downloadedk2-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 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf b/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf
index 35d2535a5b..8457ac3236 100644
--- a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf
+++ b/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf
@@ -44,6 +44,9 @@
DebugLib
CpuExceptionHandlerLib
DebugAgentLib
+ # CapsuleX64 implements its own _ModuleEntryPoint() and does not link against the standard PEIM entrypoint. As a
+ # result, it must include StackCheckLib to resolve the compiler inserted references to stack cookie functionality
+ StackCheckLib
[Depex]
FALSE