remove redundant checking for CONFIG_STACK_CANARIES
The file is already guarded with obj-$(CONFIG_STACK_CANARIES) += compiler_stack_protect.o So no need to check for CONFIG_STACK_CANARIES again in the file itself. Change-Id: I09cf274679a1678f02478fca799a3f6507e77211 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a5375bd903
commit
1e825f9c0f
1 changed files with 0 additions and 7 deletions
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include <toolchain.h> /* compiler specific configurations */
|
||||
|
||||
#if defined(CONFIG_STACK_CANARIES)
|
||||
|
||||
#include <nano_private.h>
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
@ -50,10 +48,6 @@ void FUNC_NORETURN _StackCheckHandler(void)
|
|||
_NanoFatalErrorHandler(_NANO_ERR_STACK_CHK_FAIL, &_default_esf);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_STACK_CANARIES */
|
||||
|
||||
#ifdef CONFIG_STACK_CANARIES
|
||||
|
||||
/* Global variable */
|
||||
|
||||
/*
|
||||
|
@ -70,4 +64,3 @@ void __noinit *__stack_chk_guard;
|
|||
* a buffer overflow or stack corruption problem.
|
||||
*/
|
||||
FUNC_ALIAS(_StackCheckHandler, __stack_chk_fail, void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue