mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
soc: place constant data from rtc_clk.c into DRAM
In release mode, switches in rtc_clk_bbpll_set would be converted to jump tables. These tables would be placed into .rodata, which caused rtc_clk_cpu_freq_set to be unusable while cache is disabled. This manifested itself in crashes when exiting from light sleep: https://esp32.com/posting.php?mode=reply&f=13&t=3089#pr14590
This commit is contained in:
@@ -117,6 +117,7 @@ SECTIONS
|
|||||||
*(.dram1 .dram1.*)
|
*(.dram1 .dram1.*)
|
||||||
*libesp32.a:panic.o(.rodata .rodata.*)
|
*libesp32.a:panic.o(.rodata .rodata.*)
|
||||||
*libphy.a:(.rodata .rodata.*)
|
*libphy.a:(.rodata .rodata.*)
|
||||||
|
*libsoc.a:rtc_clk.o(.rodata .rodata.*)
|
||||||
*libapp_trace.a:(.rodata .rodata.*)
|
*libapp_trace.a:(.rodata .rodata.*)
|
||||||
*libgcov.a:(.rodata .rodata.*)
|
*libgcov.a:(.rodata .rodata.*)
|
||||||
*libheap.a:multi_heap.o(.rodata .rodata.*)
|
*libheap.a:multi_heap.o(.rodata .rodata.*)
|
||||||
|
Reference in New Issue
Block a user