PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf\r
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
TimerLib|EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.inf\r
+ # StackCheckLib is not linked for SEC modules by default, this package can link it against its SEC modules\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
\r
[LibraryClasses.common.USER_DEFINED, LibraryClasses.common.BASE]\r
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
# Emulator, OS WIN application\r
# CLANGPDB is cross OS tool chain. It depends on WIN_HOST_BUILD flag\r
# to build WinHost application.\r
+ #\r
+ # USER_DEFINED components skip normal NULL lib linking, so we have to link this\r
+ # specially here for the libs that have stack guard enabled\r
##\r
- EmulatorPkg/Win/Host/WinHost.inf\r
+ EmulatorPkg/Win/Host/WinHost.inf {\r
+ <LibraryClasses>\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
+ }\r
!else\r
##\r
# Emulator, OS POSIX application\r
+ #\r
+ # USER_DEFINED components skip normal NULL lib linking, so we have to link this\r
+ # specially here for the libs that have stack guard enabled\r
##\r
- EmulatorPkg/Unix/Host/Host.inf\r
+ EmulatorPkg/Unix/Host/Host.inf {\r
+ <LibraryClasses>\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
+ }\r
!endif\r
!endif\r
\r