mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04: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:
parent
7d436c9a44
commit
73e8afc5b9
@ -117,6 +117,7 @@ SECTIONS
|
||||
*(.dram1 .dram1.*)
|
||||
*libesp32.a:panic.o(.rodata .rodata.*)
|
||||
*libphy.a:(.rodata .rodata.*)
|
||||
*libsoc.a:rtc_clk.o(.rodata .rodata.*)
|
||||
*libapp_trace.a:(.rodata .rodata.*)
|
||||
*libgcov.a:(.rodata .rodata.*)
|
||||
*libheap.a:multi_heap.o(.rodata .rodata.*)
|
||||
|
Loading…
Reference in New Issue
Block a user