diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index 92b75a4ce..735084f55 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -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()