mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
Merge branch 'bugfix/s2_lightsleep_regression' into 'master'
sleep: disable switch-case jump tables from being placed in flash See merge request espressif/esp-idf!13083
This commit is contained in:
commit
1ea54a6496
@ -17,6 +17,11 @@ if(NOT BOOTLOADER_BUILD)
|
|||||||
"mac_addr.c"
|
"mac_addr.c"
|
||||||
"sleep_modes.c")
|
"sleep_modes.c")
|
||||||
list(APPEND priv_requires esp_ipc)
|
list(APPEND priv_requires esp_ipc)
|
||||||
|
|
||||||
|
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
||||||
|
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/sleep_modes.c" PROPERTIES
|
||||||
|
COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
idf_component_register(SRCS ${srcs}
|
idf_component_register(SRCS ${srcs}
|
||||||
|
@ -52,10 +52,6 @@ else()
|
|||||||
PROPERTIES COMPILE_FLAGS
|
PROPERTIES COMPILE_FLAGS
|
||||||
-fno-stack-protector)
|
-fno-stack-protector)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
|
||||||
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/sleep_modes.c" PROPERTIES
|
|
||||||
COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_IDF_ENV_FPGA)
|
if(CONFIG_IDF_ENV_FPGA)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user