diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2024-10-28 10:50:45 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-07 02:23:11 +0000 |
commit | 30547859f22024fb4d24cc667e020c68a3710538 (patch) | |
tree | 0236732f5c210e7d50e2874505a8be0c74184638 | |
parent | 6d741357c2597c3e769f05d7ef698bf400c03d9b (diff) | |
download | edk2-30547859f22024fb4d24cc667e020c68a3710538.tar.gz |
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 <osde@linux.microsoft.com>
-rw-r--r-- | OvmfPkg/OvmfPkgIa32X64.dsc | 4 |
1 files 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
|