From 30547859f22024fb4d24cc667e020c68a3710538 Mon Sep 17 00:00:00 2001 From: Oliver Smith-Denny Date: Mon, 28 Oct 2024 10:50:45 -0700 Subject: OvmfPkg: OvmfIA32X64: Add Custom Stack Cookie Checking To provide an example and test the code within edk2, this adds stack cookie checking to OvmfIA32X64, doing no checking for SEC and PEI_CORE modules, static cookies for PEIMs, and dynamic cookies for all other module types. Signed-off-by: Oliver Smith-Denny --- OvmfPkg/OvmfPkgIa32X64.dsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index 522b290789..a9383a6b9b 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -79,6 +79,8 @@ !endif !endif + DEFINE CUSTOM_STACK_CHECK_LIB = DYNAMIC + !include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc [BuildOptions] @@ -178,8 +180,6 @@ UefiLib|MdePkg/Library/UefiLib/UefiLib.inf UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf - UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf - UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf -- cgit