mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-15 22:58:09 +02:00
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>
39 lines
1.0 KiB
INI
39 lines
1.0 KiB
INI
## @file
|
|
# Module entry point library for StandaloneMm core that dynamically updates the stack cookie.
|
|
# The AARCH64 version of this library lives in ArmPkg.
|
|
#
|
|
# Copyright (c) 2017 - 2021, Arm Ltd. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x0001001A
|
|
BASE_NAME = StandaloneMmCoreEntryPointDynamicInit
|
|
FILE_GUID = 490073A1-4DBC-4E9E-B30D-A4204139FC5F
|
|
MODULE_TYPE = MM_CORE_STANDALONE
|
|
VERSION_STRING = 1.0
|
|
PI_SPECIFICATION_VERSION = 0x00010032
|
|
LIBRARY_CLASS = StandaloneMmCoreEntryPoint|MM_CORE_STANDALONE
|
|
|
|
#
|
|
# VALID_ARCHITECTURES = X64
|
|
#
|
|
|
|
[Sources.X64]
|
|
StandaloneMmCore/X64/StandaloneMmCoreEntryPoint.c
|
|
|
|
[Sources.X64]
|
|
X64/DynamicCookieGcc.nasm | GCC
|
|
X64/DynamicCookieMsvc.nasm | MSFT
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
StackCheckLib
|