diff options
author | Taylor Beebe <taylor.d.beebe@gmail.com> | 2024-08-27 14:31:48 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-13 03:58:46 +0000 |
commit | ac43bbacdef18a6fea6d978e096326ec0805885d (patch) | |
tree | b7df070aa9c31205f5d123eff6542680094f968f /MdePkg/MdePkg.dec | |
parent | 3a9da5f329ab9683bffc451502a2f0680568a71f (diff) | |
download | edk2-ac43bbacdef18a6fea6d978e096326ec0805885d.tar.gz edk2-ac43bbacdef18a6fea6d978e096326ec0805885d.tar.bz2 edk2-ac43bbacdef18a6fea6d978e096326ec0805885d.zip |
MdePkg: Create Stack Check Null Libs
Add Null libs for Stack Check and Stack Check Failure Hook Lib that
allow a platform to opt out of stack checks and the stack check failure
hook lib.
StackCheckLib allows implementation (or in this case null implementation)
of stack checks on binaries. There is a Host Application specific version
of this null lib because MSVC host applications must not be linked against
our lib (so the file here is a no-op but that doesn't cause the build
system to fail the build for not building a file for MSVC) as it links
against the MSVC C runtime lib that provides the stack cookie definitions.
GCC host applications do not link against such a C runtime lib and must
be linked against our version.
StackCheckFailureHookLib lets a platform do custom functionality when a
stack check failure occurs (such as log it to a platform defined
mechanism). The null lib simply returns.
Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'MdePkg/MdePkg.dec')
-rw-r--r-- | MdePkg/MdePkg.dec | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 8d5947fc9e..b542d6d832 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -303,6 +303,10 @@ #
TraceHubDebugSysTLib|Include/Library/TraceHubDebugSysTLib.h
+ ## @libraryclass Provides a hook called when a stack cookie check fails.
+ #
+ StackCheckFailureHookLib|Include/Library/StackCheckFailureHookLib.h
+
[LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64]
## @libraryclass Provides services to generate random number.
#
|