TianoCore EDK2
master
Loading...
Searching...
No Matches
StackCheckLibCommonGcc.c
Go to the documentation of this file.
1
9
#include <Base.h>
10
11
#include <
Library/DebugLib.h
>
12
#include <
Library/BaseLib.h
>
13
#include <
Library/StackCheckFailureHookLib.h
>
14
18
VOID
19
TriggerStackCookieInterrupt
(
20
VOID
21
);
22
23
VOID *__stack_chk_guard = (VOID *)(
UINTN
)STACK_COOKIE_VALUE;
24
30
VOID
31
__stack_chk_fail
(
32
VOID
33
)
34
{
35
DEBUG
((DEBUG_ERROR,
"Stack cookie check failed at address 0x%llx!\n"
,
RETURN_ADDRESS
(0)));
36
StackCheckFailureHook
(
RETURN_ADDRESS
(0));
37
TriggerStackCookieInterrupt
();
38
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
BaseLib.h
RETURN_ADDRESS
#define RETURN_ADDRESS(L)
Definition:
Base.h:1379
DebugLib.h
DEBUG
#define DEBUG(Expression)
Definition:
DebugLib.h:434
StackCheckFailureHookLib.h
StackCheckFailureHook
VOID EFIAPI StackCheckFailureHook(VOID *FailureAddress)
Definition:
StackCheckFailureHook.c:20
__stack_chk_fail
VOID __stack_chk_fail(VOID)
Definition:
StackCheckLibCommonGcc.c:31
TriggerStackCookieInterrupt
VOID TriggerStackCookieInterrupt(VOID)
MdePkg
Library
StackCheckLib
StackCheckLibCommonGcc.c
Generated on Fri Nov 15 2024 18:01:18 for TianoCore EDK2 by
1.9.6