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 /EmulatorPkg | |
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 'EmulatorPkg')
-rw-r--r-- | EmulatorPkg/EmulatorPkg.dsc | 10 | ||||
-rw-r--r-- | EmulatorPkg/Sec/Sec.inf | 1 | ||||
-rw-r--r-- | EmulatorPkg/Unix/Host/Host.inf | 1 | ||||
-rw-r--r-- | EmulatorPkg/Win/Host/WinHost.inf | 1 |
4 files changed, 5 insertions, 8 deletions
diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc index a4989c1239..5bba746a02 100644 --- a/EmulatorPkg/EmulatorPkg.dsc +++ b/EmulatorPkg/EmulatorPkg.dsc @@ -323,10 +323,7 @@ # USER_DEFINED components skip normal NULL lib linking, so we have to link this
# specially here for the libs that have stack guard enabled
##
- EmulatorPkg/Win/Host/WinHost.inf {
- <LibraryClasses>
- NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
- }
+ EmulatorPkg/Win/Host/WinHost.inf
!else
##
# Emulator, OS POSIX application
@@ -334,10 +331,7 @@ # USER_DEFINED components skip normal NULL lib linking, so we have to link this
# specially here for the libs that have stack guard enabled
##
- EmulatorPkg/Unix/Host/Host.inf {
- <LibraryClasses>
- NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
- }
+ EmulatorPkg/Unix/Host/Host.inf
!endif
!endif
diff --git a/EmulatorPkg/Sec/Sec.inf b/EmulatorPkg/Sec/Sec.inf index 7476094f13..5d47eed7ae 100644 --- a/EmulatorPkg/Sec/Sec.inf +++ b/EmulatorPkg/Sec/Sec.inf @@ -40,6 +40,7 @@ PeiServicesLib
PpiListLib
BaseMemoryLib
+ StackCheckLib
[Ppis]
gEfiTemporaryRamSupportPpiGuid
diff --git a/EmulatorPkg/Unix/Host/Host.inf b/EmulatorPkg/Unix/Host/Host.inf index 1b7481d1e0..550cb9f6e8 100644 --- a/EmulatorPkg/Unix/Host/Host.inf +++ b/EmulatorPkg/Unix/Host/Host.inf @@ -61,6 +61,7 @@ PpiListLib
PeiServicesLib
PeCoffGetEntryPointLib
+ StackCheckLib
[Ppis]
gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
diff --git a/EmulatorPkg/Win/Host/WinHost.inf b/EmulatorPkg/Win/Host/WinHost.inf index 9b3cefcabb..b123ea9dcf 100644 --- a/EmulatorPkg/Win/Host/WinHost.inf +++ b/EmulatorPkg/Win/Host/WinHost.inf @@ -55,6 +55,7 @@ PpiListLib
PeiServicesLib
FrameBufferBltLib
+ StackCheckLib
[Ppis]
gEmuThunkPpiGuid
|