@@ -610,8 +610,6 @@ SECTIONS
610610 __bss_start = ABSOLUTE (.);
611611 _bss_start = ABSOLUTE (.);
612612
613- /* bluetooth library requires this symbol to be defined */
614- _btdm_bss_start = ABSOLUTE (.);
615613 *libbtdm_app.a :(.bss .bss .* COMMON)
616614 . = ALIGN (4 );
617615 _btdm_bss_end = ABSOLUTE (.);
@@ -662,6 +660,7 @@ SECTIONS
662660 _instruction_reserved_start = ABSOLUTE (.);
663661 _text_start = ABSOLUTE (.);
664662 _instruction_reserved_start = ABSOLUTE (.);
663+ __text_region_start = ABSOLUTE (.);
665664
666665#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
667666 *libnet80211.a :( .wifi0iram .wifi0iram .* .wifislpiram .wifislpiram .*)
@@ -692,6 +691,7 @@ SECTIONS
692691 _instruction_reserved_end = ABSOLUTE (.);
693692 _text_end = ABSOLUTE (.);
694693 _instruction_reserved_end = ABSOLUTE (.);
694+ __text_region_end = ABSOLUTE (.);
695695 _etext = .;
696696
697697 } GROUP_DATA_LINK_IN (CACHED_REGION, ROMABLE_REGION)
@@ -701,16 +701,16 @@ SECTIONS
701701 /* --- START OF .rodata --- */
702702
703703 /* Align next section to 64k to allow mapping */
704- .flash .align_rodata (NOLOAD) :
704+ .flash .align_rom (NOLOAD) :
705705 {
706- /* Subsequent segment lma and vma align */
707706 . = ALIGN (CACHE_ALIGN);
708- } GROUP_DATA_LINK_IN (CACHED_REGION, ROMABLE_REGION)
707+ } GROUP_LINK_IN ( ROMABLE_REGION)
709708
710- .flash .align_rom (NOLOAD) :
709+ .flash .align_rodata (NOLOAD) :
711710 {
711+ /* Subsequent segment lma and vma align */
712712 . = ALIGN (CACHE_ALIGN);
713- } GROUP_LINK_IN (ROMABLE_REGION )
713+ } GROUP_LINK_IN (CACHED_REGION )
714714
715715 /* Symbols used during the application memory mapping */
716716 _image_drom_start = LOADADDR (.flash .rodata );
0 commit comments