CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf\r
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
\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.PEI_CORE]\r
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
\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.PEI_CORE]\r
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf\r
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
\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.PEI_CORE]\r
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
PeilessStartupLib|OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf\r
CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf\r
\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.DXE_CORE]\r
HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
!endif\r
\r
- # For stack protector support\r
- NULL | MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
-\r
BaseLib | MdePkg/Library/BaseLib/BaseLib.inf\r
SafeIntLib | MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
TimeBaseLib | EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf\r
PlatformHookLib | OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf\r
CpuExceptionHandlerLib | UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
\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.PEI_CORE]\r
PcdLib | MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
HobLib | MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf\r
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
\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.PEI_CORE]\r
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
OvmfPkg/Sec/SecMain.inf {\r
<LibraryClasses>\r
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
}\r
\r
#\r
OvmfPkg/Sec/SecMain.inf {\r
<LibraryClasses>\r
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
}\r
\r
#\r
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
NULL|OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelperLib.inf\r
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
}\r
\r
#\r
OvmfPkg/Sec/SecMain.inf {\r
<LibraryClasses>\r
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
+ NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
}\r
\r
#\r
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
!endif\r
\r
-\r
- # Add support for GCC stack protector\r
- NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
-\r
# RISC-V Architectural Libraries\r
CpuExceptionHandlerLib|UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/BaseRiscV64CpuExceptionHandlerLib.inf\r
RiscVSbiLib|MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf\r
PrePiHobListPointerLib|OvmfPkg/RiscVVirt/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf\r
MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf\r
\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.DXE_CORE]\r
PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf\r
HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r