summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorOliver Smith-Denny <osde@linux.microsoft.com>2024-07-23 15:34:37 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-13 03:58:46 +0000
commitae5953dea06e0b79a808168892913f6ada07302d (patch)
treed0c5321ba89140a99b982a400e09a72f74f32d3c /EmulatorPkg
parente7c0ad366106839842f7b5f40a2f6efd87338b63 (diff)
downloadedk2-ae5953dea06e0b79a808168892913f6ada07302d.tar.gz
EmulatorPkg: Add StackCheckLibNull
Remove the old stack check lib now that MdeLibs.inc includes the new one. Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/EmulatorPkg.dsc18
1 files changed, 16 insertions, 2 deletions
diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc
index 1c356bc8c7..e4bf3ce416 100644
--- a/EmulatorPkg/EmulatorPkg.dsc
+++ b/EmulatorPkg/EmulatorPkg.dsc
@@ -151,6 +151,8 @@
PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
TimerLib|EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.inf
+ # StackCheckLib is not linked for SEC modules by default, this package can link it against its SEC modules
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
[LibraryClasses.common.USER_DEFINED, LibraryClasses.common.BASE]
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
@@ -319,13 +321,25 @@
# Emulator, OS WIN application
# CLANGPDB is cross OS tool chain. It depends on WIN_HOST_BUILD flag
# to build WinHost application.
+ #
+ # 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
+ EmulatorPkg/Win/Host/WinHost.inf {
+ <LibraryClasses>
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
+ }
!else
##
# Emulator, OS POSIX application
+ #
+ # 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
+ EmulatorPkg/Unix/Host/Host.inf {
+ <LibraryClasses>
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
+ }
!endif
!endif