diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index dfbd4b2c9..36ccbd55e 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -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()