diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index eb2012964d..5416ad2256 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -142,4 +142,9 @@ else() 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()