Merge branch 'bugfix/cmake_stack_protector_v3.2' into 'release/v3.2'

esp32: disable stack protector for startup code (CMake) (backport v3.2)

See merge request idf/esp-idf!4250
This commit is contained in:
Angus Gratton 2019-02-20 15:40:14 +08:00
commit b7beefba9e

View file

@ -148,4 +148,10 @@ else()
if(NOT "${BUILD_TEST_COMPONENTS}" EQUAL "")
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()