ReactOS 0.4.16-dev-340-g0540c21
gcc_ssp.c File Reference
#include <ntdef.h>
#include <debug.h>
Include dependency graph for gcc_ssp.c:

Go to the source code of this file.

Macros

#define print_caller()   DbgPrint("STACK PROTECTOR FAULT AT %p\n", __builtin_extract_return_addr(__builtin_return_address(0)))
 

Functions

void __stack_chk_fail ()
 

Variables

void__stack_chk_guard = (void*)0xb00fbeefbaafb00f
 

Macro Definition Documentation

◆ print_caller

#define print_caller ( )    DbgPrint("STACK PROTECTOR FAULT AT %p\n", __builtin_extract_return_addr(__builtin_return_address(0)))

Definition at line 54 of file gcc_ssp.c.

Function Documentation

◆ __stack_chk_fail()

void __stack_chk_fail ( )

Definition at line 61 of file gcc_ssp.c.

62{
64 __asm__("int $3");
65}
#define print_caller()
Definition: gcc_ssp.c:54
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")

Variable Documentation

◆ __stack_chk_guard

void* __stack_chk_guard = (void*)0xb00fbeefbaafb00f

Definition at line 59 of file gcc_ssp.c.