File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 18
18
#
19
19
# ##############################################################################
20
20
21
- set (SRCS lib_assert.c )
22
-
23
- if (CONFIG_STACK_CANARIES )
24
- list (APPEND SRCS lib_stackchk.c )
25
- endif ()
21
+ set (SRCS lib_assert.c lib_stackchk.c )
26
22
27
23
if (CONFIG_ARCH_TOOLCHAIN_GNU AND NOT CONFIG_LTO_NONE )
28
24
set_source_files_properties (lib_assert.c DIRECTORY .. PROPERTIES COMPILE_FLAGS
Original file line number Diff line number Diff line change 18
18
#
19
19
############################################################################
20
20
21
- CSRCS += lib_assert.c
22
-
23
- ifeq ($(CONFIG_STACK_CANARIES),y)
24
- CSRCS += lib_stackchk.c
25
- endif
21
+ CSRCS += lib_assert.c lib_stackchk.c
26
22
27
23
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
28
24
ifeq ($(CONFIG_LTO_NONE),n)
Original file line number Diff line number Diff line change 24
24
25
25
#include <assert.h>
26
26
27
- #ifdef CONFIG_STACK_CANARIES
28
-
29
27
/****************************************************************************
30
28
* Public Data
31
29
****************************************************************************/
@@ -56,5 +54,3 @@ void __stack_chk_fail(void)
56
54
{
57
55
PANIC ();
58
56
}
59
-
60
- #endif /* CONFIG_STACK_CANARIES */
You can’t perform that action at this time.
0 commit comments