mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp32: disable stack protector for startup code (CMake)
Files where stack protector is initialized should not be compiled with stack protector enabled. This was done for Make but missing for CMake. Fixes https://github.com/espressif/esp-idf/issues/2990.
This commit is contained in:
parent
3660ccac4c
commit
1e674fb4ed
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user