ARMEBS4  revision-26.06.2015
stack_protector.c
Go to the documentation of this file.
1 /**
2  * \file heivs/stack_protector.c
3  * \brief stack protection support for gcc
4  *
5  * \author marc dot pignat at hevs dot ch
6  *
7  * \see -fstack-protector and -fstack-protector-all gcc options
8  * \warning incompatible with
9  */
10 
11 #include "heivs/bsp.h"
12 #include "heivs/config.h"
13 
14 #if USE_GCC_STACK_PROTECTOR
15 void __attribute__((weak, noreturn)) __stack_chk_fail()
16 {
18  {
19  breakpoint();
20  }
21 
23 }
24 
25 #endif /* USE_GCC_STACK_PROTECTOR */
BSP - Board Support Package.
#define breakpoint()
Breakpoint (from code)
Definition: utils.h:74
libheivs configuration file
void bsp_fatal(status_e status)
fatal error
Definition: bsp.c:123
#define debugger_is_connected()
Detect is debugger is connected.
Definition: utils.h:67
No comment.
Definition: error.h:68