Merge branch 'bugfix/cmake_stack_protector' into 'master'

esp32: disable stack protector for startup code (CMake)

See merge request idf/esp-idf!4198
This commit is contained in:
Ivan Grokhotkov 2019-01-30 16:28:40 +08:00
commit 024c568c73

View File

@ -153,4 +153,10 @@ else()
if(esp32_test IN_LIST BUILD_TEST_COMPONENTS)
add_definitions(-DESP_TIMER_DYNAMIC_OVERFLOW_VAL)
endif()
# disable stack protection in files which are involved in initialization of that feature
set_source_files_properties(
stack_check.c cpu_start.c
PROPERTIES COMPILE_FLAGS
-fno-stack-protector)
endif()