audk/MdePkg/Library/DynamicStackCookieEntryPointLib/UefiApplicationEntryPoint.inf
Oliver Smith-Denny e6b6aa90d4 MdePkg: Add Dynamic Stack Cookie Support
Adds dynamic stack cookies in the form of copies of the entry
point libraries that use shared logic to update stack cookies
at runtime.

This relies on RDRAND on IA32/X64 and RNDR on AARCH64 to get a
random number to apply to the stack cookie on module entry point.

This simplifies the logic a platform must do to include stack
check functionality.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-02-07 02:23:11 +00:00

46 lines
1.2 KiB
INI

## @file
# Module entry point library for UEFI Application that dynamically updates the stack cookie.
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = UefiApplicationEntryPointDynamicInit
MODULE_UNI_FILE = UefiApplication/UefiApplicationEntryPoint.uni
FILE_GUID = 755B9094-E5AF-4E5B-BE33-D430CDE2C5D2
MODULE_TYPE = UEFI_APPLICATION
VERSION_STRING = 1.0
LIBRARY_CLASS = UefiApplicationEntryPoint|UEFI_APPLICATION
#
# VALID_ARCHITECTURES = IA32 X64 AARCH64
#
[Sources]
UefiApplication/ApplicationEntryPoint.c
[Sources.IA32]
IA32/DynamicCookieGcc.nasm | GCC
IA32/DynamicCookieMsvc.nasm | MSFT
[Sources.X64]
X64/DynamicCookieGcc.nasm | GCC
X64/DynamicCookieMsvc.nasm | MSFT
[Sources.AARCH64]
AArch64/DynamicCookieGcc.S | GCC
[Packages]
MdePkg/MdePkg.dec
[LibraryClasses]
UefiBootServicesTableLib
DebugLib
BaseLib
StackCheckLib