sections.ld 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /* Automatically generated file; DO NOT EDIT */
  2. /* Espressif IoT Development Framework Linker Script */
  3. /* Generated from: D:\software\esp-idf\esp-idf\components\esp_system\ld\esp32c3\sections.ld.in */
  4. /*
  5. * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
  6. *
  7. * SPDX-License-Identifier: Apache-2.0
  8. */
  9. /* Default entry point */
  10. ENTRY(call_start_cpu0);
  11. SECTIONS
  12. {
  13. /**
  14. * RTC fast memory holds RTC wake stub code,
  15. * including from any source file named rtc_wake_stub*.c
  16. */
  17. .rtc.text :
  18. {
  19. . = ALIGN(4);
  20. _rtc_fast_start = ABSOLUTE(.);
  21. *(.rtc.literal .rtc.text .rtc.text.*)
  22. *rtc_wake_stub*.*(.literal .text .literal.* .text.*)
  23. *(.rtc_text_end_test)
  24. /* 16B padding for possible CPU prefetch and 4B alignment for PMS split lines */
  25. . += _esp_memprot_prefetch_pad_size;
  26. . = ALIGN(4);
  27. _rtc_text_end = ABSOLUTE(.);
  28. } > rtc_iram_seg
  29. /**
  30. * This section located in RTC FAST Memory area.
  31. * It holds data marked with RTC_FAST_ATTR attribute.
  32. * See the file "esp_attr.h" for more information.
  33. */
  34. .rtc.force_fast :
  35. {
  36. . = ALIGN(4);
  37. _rtc_force_fast_start = ABSOLUTE(.);
  38. _coredump_rtc_fast_start = ABSOLUTE(.);
  39. *(.rtc.fast.coredump .rtc.fast.coredump.*)
  40. _coredump_rtc_fast_end = ABSOLUTE(.);
  41. *(.rtc.force_fast .rtc.force_fast.*)
  42. . = ALIGN(4) ;
  43. _rtc_force_fast_end = ABSOLUTE(.);
  44. } > rtc_data_seg
  45. /**
  46. * RTC data section holds RTC wake stub
  47. * data/rodata, including from any source file
  48. * named rtc_wake_stub*.c and the data marked with
  49. * RTC_DATA_ATTR, RTC_RODATA_ATTR attributes.
  50. */
  51. .rtc.data :
  52. {
  53. _rtc_data_start = ABSOLUTE(.);
  54. _coredump_rtc_start = ABSOLUTE(.);
  55. *(.rtc.coredump .rtc.coredump.*)
  56. _coredump_rtc_end = ABSOLUTE(.);
  57. *(.rtc.data .rtc.data.*)
  58. *(.rtc.rodata .rtc.rodata.*)
  59. *rtc_wake_stub*.*(.data .rodata .data.* .rodata.* .bss .bss.*)
  60. _rtc_data_end = ABSOLUTE(.);
  61. } > rtc_data_location
  62. /* RTC bss, from any source file named rtc_wake_stub*.c */
  63. .rtc.bss (NOLOAD) :
  64. {
  65. _rtc_bss_start = ABSOLUTE(.);
  66. *rtc_wake_stub*.*(.bss .bss.*)
  67. *rtc_wake_stub*.*(COMMON)
  68. *(.rtc.bss)
  69. _rtc_bss_end = ABSOLUTE(.);
  70. } > rtc_data_location
  71. /**
  72. * This section holds data that should not be initialized at power up
  73. * and will be retained during deep sleep.
  74. * User data marked with RTC_NOINIT_ATTR will be placed
  75. * into this section. See the file "esp_attr.h" for more information.
  76. */
  77. .rtc_noinit (NOLOAD):
  78. {
  79. . = ALIGN(4);
  80. _rtc_noinit_start = ABSOLUTE(.);
  81. *(.rtc_noinit .rtc_noinit.*)
  82. . = ALIGN(4) ;
  83. _rtc_noinit_end = ABSOLUTE(.);
  84. } > rtc_data_location
  85. /**
  86. * This section located in RTC SLOW Memory area.
  87. * It holds data marked with RTC_SLOW_ATTR attribute.
  88. * See the file "esp_attr.h" for more information.
  89. */
  90. .rtc.force_slow :
  91. {
  92. . = ALIGN(4);
  93. _rtc_force_slow_start = ABSOLUTE(.);
  94. *(.rtc.force_slow .rtc.force_slow.*)
  95. . = ALIGN(4) ;
  96. _rtc_force_slow_end = ABSOLUTE(.);
  97. } > rtc_slow_seg
  98. /* Get size of rtc slow data based on rtc_data_location alias */
  99. _rtc_slow_length = (ORIGIN(rtc_slow_seg) == ORIGIN(rtc_data_location))
  100. ? (_rtc_force_slow_end - _rtc_data_start)
  101. : (_rtc_force_slow_end - _rtc_force_slow_start);
  102. _rtc_fast_length = (ORIGIN(rtc_slow_seg) == ORIGIN(rtc_data_location))
  103. ? (_rtc_force_fast_end - _rtc_fast_start)
  104. : (_rtc_noinit_end - _rtc_fast_start);
  105. ASSERT((_rtc_slow_length <= LENGTH(rtc_slow_seg)),
  106. "RTC_SLOW segment data does not fit.")
  107. ASSERT((_rtc_fast_length <= LENGTH(rtc_data_seg)),
  108. "RTC_FAST segment data does not fit.")
  109. .iram0.text :
  110. {
  111. _iram_start = ABSOLUTE(.);
  112. /* Vectors go to start of IRAM */
  113. ASSERT(ABSOLUTE(.) % 0x100 == 0, "vector address must be 256 byte aligned");
  114. KEEP(*(.exception_vectors.text));
  115. . = ALIGN(4);
  116. _invalid_pc_placeholder = ABSOLUTE(.);
  117. /* Code marked as running out of IRAM */
  118. _iram_text_start = ABSOLUTE(.);
  119. *(.iram1 .iram1.*)
  120. *libapp_trace.a:app_trace.*(.literal .literal.* .text .text.*)
  121. *libapp_trace.a:app_trace_util.*(.literal .literal.* .text .text.*)
  122. *libapp_trace.a:port_uart.*(.literal .literal.* .text .text.*)
  123. *libesp_event.a:default_event_loop.*(.literal.esp_event_isr_post .text.esp_event_isr_post)
  124. *libesp_event.a:esp_event.*(.literal.esp_event_isr_post_to .text.esp_event_isr_post_to)
  125. *libesp_hw_support.a:cpu.*(.literal.esp_cpu_compare_and_set .text.esp_cpu_compare_and_set)
  126. *libesp_hw_support.a:cpu.*(.literal.esp_cpu_reset .text.esp_cpu_reset)
  127. *libesp_hw_support.a:cpu.*(.literal.esp_cpu_stall .text.esp_cpu_stall)
  128. *libesp_hw_support.a:cpu.*(.literal.esp_cpu_unstall .text.esp_cpu_unstall)
  129. *libesp_hw_support.a:cpu.*(.literal.esp_cpu_wait_for_intr .text.esp_cpu_wait_for_intr)
  130. *libesp_hw_support.a:esp_memory_utils.*(.literal .literal.* .text .text.*)
  131. *libesp_hw_support.a:rtc_clk.*(.literal .literal.* .text .text.*)
  132. *libesp_hw_support.a:rtc_init.*(.literal.rtc_vddsdio_set_config .text.rtc_vddsdio_set_config)
  133. *libesp_hw_support.a:rtc_pm.*(.literal .literal.* .text .text.*)
  134. *libesp_hw_support.a:rtc_sleep.*(.literal .literal.* .text .text.*)
  135. *libesp_hw_support.a:rtc_time.*(.literal .literal.* .text .text.*)
  136. *libesp_hw_support.a:systimer.*(.literal .literal.* .text .text.*)
  137. *libesp_ringbuf.a:(.literal .literal.* .text .text.*)
  138. *libesp_rom.a:esp_rom_regi2c.*(.literal .literal.* .text .text.*)
  139. *libesp_rom.a:esp_rom_spiflash.*(.literal .literal.* .text .text.*)
  140. *libesp_rom.a:esp_rom_systimer.*(.literal .literal.* .text .text.*)
  141. *libesp_system.a:esp_err.*(.literal .literal.* .text .text.*)
  142. *libesp_system.a:esp_system.*(.literal.esp_system_abort .text.esp_system_abort)
  143. *libesp_system.a:ubsan.*(.literal .literal.* .text .text.*)
  144. *libfreertos.a:(EXCLUDE_FILE(*libfreertos.a:port.* *libfreertos.a:port_common.*) .literal EXCLUDE_FILE(*libfreertos.a:port.* *libfreertos.a:port_common.*) .literal.* EXCLUDE_FILE(*libfreertos.a:port.* *libfreertos.a:port_common.*) .text EXCLUDE_FILE(*libfreertos.a:port.* *libfreertos.a:port_common.*) .text.*)
  145. *libfreertos.a:port.*(.text .text.pxPortInitialiseStack .text.vApplicationStackOverflowHook .text.vPortClearInterruptMask .text.vPortEndScheduler .text.vPortEnterCritical .text.vPortExitCritical .text.vPortSetInterruptMask .text.vPortSetStackWatchpoint .text.vPortTaskWrapper .text.vPortYield .text.vPortYieldFromISR .text.vPortYieldOtherCore .text.xPortGetTickRateHz .text.xPortInIsrContext .text.xPortStartScheduler)
  146. *libfreertos.a:port_common.*(.text .text.esp_startup_start_app_common .text.vApplicationGetIdleTaskMemory .text.vApplicationGetTimerTaskMemory .text.xPortCheckValidTCBMem .text.xPortcheckValidStackMem)
  147. *libgcc.a:_divsf3.*(.literal .literal.* .text .text.*)
  148. *libgcc.a:lib2funcs.*(.literal .literal.* .text .text.*)
  149. *libgcc.a:save-restore.*(.literal .literal.* .text .text.*)
  150. *libgcov.a:(.literal .literal.* .text .text.*)
  151. *libhal.a:cache_hal.*(.literal .literal.* .text .text.*)
  152. *libhal.a:i2c_hal_iram.*(.literal .literal.* .text .text.*)
  153. *libhal.a:ledc_hal_iram.*(.literal .literal.* .text .text.*)
  154. *libhal.a:mmu_hal.*(.literal .literal.* .text .text.*)
  155. *libhal.a:spi_flash_encrypt_hal_iram.*(.literal .literal.* .text .text.*)
  156. *libhal.a:spi_flash_hal_gpspi.*(.literal .literal.* .text .text.*)
  157. *libhal.a:spi_flash_hal_iram.*(.literal .literal.* .text .text.*)
  158. *libhal.a:spi_hal_iram.*(.literal .literal.* .text .text.*)
  159. *libhal.a:spi_slave_hal_iram.*(.literal .literal.* .text .text.*)
  160. *libhal.a:systimer_hal.*(.literal .literal.* .text .text.*)
  161. *libhal.a:wdt_hal_iram.*(.literal .literal.* .text .text.*)
  162. *libheap.a:multi_heap.*(.literal.assert_valid_block .text.assert_valid_block)
  163. *libheap.a:multi_heap.*(.literal.multi_heap_aligned_alloc_impl .text.multi_heap_aligned_alloc_impl)
  164. *libheap.a:multi_heap.*(.literal.multi_heap_aligned_alloc_impl_offs .text.multi_heap_aligned_alloc_impl_offs)
  165. *libheap.a:multi_heap.*(.literal.multi_heap_free_impl .text.multi_heap_free_impl)
  166. *libheap.a:multi_heap.*(.literal.multi_heap_get_allocated_size_impl .text.multi_heap_get_allocated_size_impl)
  167. *libheap.a:multi_heap.*(.literal.multi_heap_get_block_address_impl .text.multi_heap_get_block_address_impl)
  168. *libheap.a:multi_heap.*(.literal.multi_heap_get_first_block .text.multi_heap_get_first_block)
  169. *libheap.a:multi_heap.*(.literal.multi_heap_get_next_block .text.multi_heap_get_next_block)
  170. *libheap.a:multi_heap.*(.literal.multi_heap_internal_lock .text.multi_heap_internal_lock)
  171. *libheap.a:multi_heap.*(.literal.multi_heap_internal_unlock .text.multi_heap_internal_unlock)
  172. *libheap.a:multi_heap.*(.literal.multi_heap_is_free .text.multi_heap_is_free)
  173. *libheap.a:multi_heap.*(.literal.multi_heap_malloc_impl .text.multi_heap_malloc_impl)
  174. *libheap.a:multi_heap.*(.literal.multi_heap_realloc_impl .text.multi_heap_realloc_impl)
  175. *libheap.a:multi_heap.*(.literal.multi_heap_set_lock .text.multi_heap_set_lock)
  176. *libheap.a:tlsf.*(.literal.tlsf_align_size .text.tlsf_align_size)
  177. *libheap.a:tlsf.*(.literal.tlsf_alloc_overhead .text.tlsf_alloc_overhead)
  178. *libheap.a:tlsf.*(.literal.tlsf_block_size .text.tlsf_block_size)
  179. *libheap.a:tlsf.*(.literal.tlsf_block_size_max .text.tlsf_block_size_max)
  180. *libheap.a:tlsf.*(.literal.tlsf_block_size_min .text.tlsf_block_size_min)
  181. *libheap.a:tlsf.*(.literal.tlsf_free .text.tlsf_free)
  182. *libheap.a:tlsf.*(.literal.tlsf_get_pool .text.tlsf_get_pool)
  183. *libheap.a:tlsf.*(.literal.tlsf_malloc .text.tlsf_malloc)
  184. *libheap.a:tlsf.*(.literal.tlsf_memalign .text.tlsf_memalign)
  185. *libheap.a:tlsf.*(.literal.tlsf_memalign_offs .text.tlsf_memalign_offs)
  186. *libheap.a:tlsf.*(.literal.tlsf_realloc .text.tlsf_realloc)
  187. *libheap.a:tlsf.*(.literal.tlsf_size .text.tlsf_size)
  188. *liblog.a:log.*(.literal.esp_log_write .text.esp_log_write)
  189. *liblog.a:log_freertos.*(.literal.esp_log_early_timestamp .text.esp_log_early_timestamp)
  190. *liblog.a:log_freertos.*(.literal.esp_log_impl_lock .text.esp_log_impl_lock)
  191. *liblog.a:log_freertos.*(.literal.esp_log_impl_lock_timeout .text.esp_log_impl_lock_timeout)
  192. *liblog.a:log_freertos.*(.literal.esp_log_impl_unlock .text.esp_log_impl_unlock)
  193. *liblog.a:log_freertos.*(.literal.esp_log_timestamp .text.esp_log_timestamp)
  194. *libnet80211.a:(.wifi0iram .wifi0iram.*)
  195. *libnet80211.a:(.wifirxiram .wifirxiram.*)
  196. *libnet80211.a:(.wifislprxiram .wifislprxiram.*)
  197. *libnewlib.a:abort.*(.literal .literal.* .text .text.*)
  198. *libnewlib.a:assert.*(.literal .literal.* .text .text.*)
  199. *libnewlib.a:heap.*(.literal .literal.* .text .text.*)
  200. *libnewlib.a:stdatomic.*(.literal .literal.* .text .text.*)
  201. *libpp.a:(.wifi0iram .wifi0iram.*)
  202. *libpp.a:(.wifiorslpiram .wifiorslpiram.*)
  203. *libpp.a:(.wifirxiram .wifirxiram.*)
  204. *libpp.a:(.wifislprxiram .wifislprxiram.*)
  205. *libriscv.a:interrupt.*(.literal .literal.* .text .text.*)
  206. *libriscv.a:vectors.*(.literal .literal.* .text .text.*)
  207. *librtc.a:(.literal .literal.* .text .text.*)
  208. *libsoc.a:lldesc.*(.literal .literal.* .text .text.*)
  209. *libspi_flash.a:flash_brownout_hook.*(.literal .literal.* .text .text.*)
  210. *libspi_flash.a:memspi_host_driver.*(.literal .literal.* .text .text.*)
  211. *libspi_flash.a:spi_flash_chip_boya.*(.literal .literal.* .text .text.*)
  212. *libspi_flash.a:spi_flash_chip_gd.*(.literal .literal.* .text .text.*)
  213. *libspi_flash.a:spi_flash_chip_generic.*(.literal .literal.* .text .text.*)
  214. *libspi_flash.a:spi_flash_chip_issi.*(.literal .literal.* .text .text.*)
  215. *libspi_flash.a:spi_flash_chip_mxic.*(.literal .literal.* .text .text.*)
  216. *libspi_flash.a:spi_flash_chip_th.*(.literal .literal.* .text .text.*)
  217. *libspi_flash.a:spi_flash_chip_winbond.*(.literal .literal.* .text .text.*)
  218. } > iram0_0_seg
  219. /**
  220. * This section is required to skip .iram0.text area because iram0_0_seg and
  221. * dram0_0_seg reflect the same address space on different buses.
  222. */
  223. .dram0.dummy (NOLOAD):
  224. {
  225. . = ORIGIN(dram0_0_seg) + _iram_end - _iram_start;
  226. } > dram0_0_seg
  227. .dram0.data :
  228. {
  229. _data_start = ABSOLUTE(.);
  230. *(.gnu.linkonce.d.*)
  231. *(.data1)
  232. __global_pointer$ = . + 0x800;
  233. *(.sdata)
  234. *(.sdata.*)
  235. *(.gnu.linkonce.s.*)
  236. *(.gnu.linkonce.s2.*)
  237. *(.jcr)
  238. *(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .data EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .data.*)
  239. *(.dram1 .dram1.*)
  240. _coredump_dram_start = ABSOLUTE(.);
  241. *(.dram2.coredump .dram2.coredump.*)
  242. _coredump_dram_end = ABSOLUTE(.);
  243. *libapp_trace.a:app_trace.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  244. *libapp_trace.a:app_trace_util.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  245. *libapp_trace.a:port_uart.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  246. . = ALIGN(4);
  247. _bt_data_start = ABSOLUTE(.);
  248. *libbt.a:(.data .data.*)
  249. . = ALIGN(4);
  250. _bt_data_end = ABSOLUTE(.);
  251. . = ALIGN(4);
  252. _btdm_data_start = ABSOLUTE(.);
  253. *libbtdm_app.a:(.data .data.*)
  254. . = ALIGN(4);
  255. _btdm_data_end = ABSOLUTE(.);
  256. *libesp_hw_support.a:esp_memory_utils.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  257. *libesp_hw_support.a:rtc_clk.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  258. *libesp_hw_support.a:systimer.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  259. *libesp_rom.a:esp_rom_regi2c.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  260. *libesp_rom.a:esp_rom_spiflash.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  261. *libesp_rom.a:esp_rom_systimer.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  262. *libesp_system.a:esp_err.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  263. *libesp_system.a:ubsan.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  264. *libgcc.a:_divsf3.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  265. *libgcc.a:save-restore.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  266. *libgcov.a:(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  267. *libhal.a:cache_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  268. *libhal.a:i2c_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  269. *libhal.a:ledc_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  270. *libhal.a:mmu_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  271. *libhal.a:spi_flash_encrypt_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  272. *libhal.a:spi_flash_hal_gpspi.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  273. *libhal.a:spi_flash_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  274. *libhal.a:spi_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  275. *libhal.a:spi_slave_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  276. *libhal.a:systimer_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  277. *libhal.a:wdt_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  278. *libnewlib.a:abort.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  279. *libnewlib.a:assert.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  280. *libnewlib.a:heap.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  281. *libnewlib.a:stdatomic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  282. . = ALIGN(4);
  283. _nimble_data_start = ABSOLUTE(.);
  284. *libnimble.a:(.data .data.*)
  285. . = ALIGN(4);
  286. _nimble_data_end = ABSOLUTE(.);
  287. *libphy.a:(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  288. *libsoc.a:lldesc.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  289. *libspi_flash.a:flash_brownout_hook.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  290. *libspi_flash.a:memspi_host_driver.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  291. *libspi_flash.a:spi_flash_chip_boya.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  292. *libspi_flash.a:spi_flash_chip_gd.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  293. *libspi_flash.a:spi_flash_chip_generic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  294. *libspi_flash.a:spi_flash_chip_issi.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  295. *libspi_flash.a:spi_flash_chip_mxic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  296. *libspi_flash.a:spi_flash_chip_th.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  297. *libspi_flash.a:spi_flash_chip_winbond.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  298. _data_end = ABSOLUTE(.);
  299. . = ALIGN(4);
  300. } > dram0_0_seg
  301. /**
  302. * This section holds data that should not be initialized at power up.
  303. * The section located in Internal SRAM memory region. The macro _NOINIT
  304. * can be used as attribute to place data into this section.
  305. * See the "esp_attr.h" file for more information.
  306. */
  307. .noinit (NOLOAD):
  308. {
  309. . = ALIGN(4);
  310. _noinit_start = ABSOLUTE(.);
  311. *(.noinit .noinit.*)
  312. . = ALIGN(4) ;
  313. _noinit_end = ABSOLUTE(.);
  314. } > dram0_0_seg
  315. /* Shared RAM */
  316. .dram0.bss (NOLOAD) :
  317. {
  318. . = ALIGN (8);
  319. _bss_start = ABSOLUTE(.);
  320. *(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss.*)
  321. *(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
  322. *(.ext_ram.bss .ext_ram.bss.*)
  323. *(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) COMMON)
  324. . = ALIGN(4);
  325. _bt_bss_start = ABSOLUTE(.);
  326. *libbt.a:(.bss .bss.*)
  327. . = ALIGN(4);
  328. _bt_bss_end = ABSOLUTE(.);
  329. . = ALIGN(4);
  330. _bt_common_start = ABSOLUTE(.);
  331. *libbt.a:(COMMON)
  332. . = ALIGN(4);
  333. _bt_common_end = ABSOLUTE(.);
  334. . = ALIGN(4);
  335. _btdm_bss_start = ABSOLUTE(.);
  336. *libbtdm_app.a:(.bss .bss.*)
  337. . = ALIGN(4);
  338. _btdm_bss_end = ABSOLUTE(.);
  339. . = ALIGN(4);
  340. _btdm_common_start = ABSOLUTE(.);
  341. *libbtdm_app.a:(COMMON)
  342. . = ALIGN(4);
  343. _btdm_common_end = ABSOLUTE(.);
  344. . = ALIGN(4);
  345. _nimble_bss_start = ABSOLUTE(.);
  346. *libnimble.a:(.bss .bss.*)
  347. . = ALIGN(4);
  348. _nimble_bss_end = ABSOLUTE(.);
  349. . = ALIGN(4);
  350. _nimble_common_start = ABSOLUTE(.);
  351. *libnimble.a:(COMMON)
  352. . = ALIGN(4);
  353. _nimble_common_end = ABSOLUTE(.);
  354. *(.dynsbss)
  355. *(.sbss)
  356. *(.sbss.*)
  357. *(.gnu.linkonce.sb.*)
  358. *(.scommon)
  359. *(.sbss2)
  360. *(.sbss2.*)
  361. *(.gnu.linkonce.sb2.*)
  362. *(.dynbss)
  363. *(.share.mem)
  364. *(.gnu.linkonce.b.*)
  365. . = ALIGN (8);
  366. _bss_end = ABSOLUTE(.);
  367. } > dram0_0_seg
  368. ASSERT(((_bss_end - ORIGIN(dram0_0_seg)) <= LENGTH(dram0_0_seg)), "DRAM segment data does not fit.")
  369. .flash.text :
  370. {
  371. _stext = .;
  372. _instruction_reserved_start = ABSOLUTE(.);
  373. _text_start = ABSOLUTE(.);
  374. *(EXCLUDE_FILE(*libesp_ringbuf.a *libfreertos.a *libgcov.a *librtc.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_event.a:default_event_loop.* *libesp_event.a:esp_event.* *libesp_hw_support.a:cpu.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:rtc_init.* *libesp_hw_support.a:rtc_pm.* *libesp_hw_support.a:rtc_sleep.* *libesp_hw_support.a:rtc_time.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:esp_system.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:lib2funcs.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libheap.a:multi_heap.* *libheap.a:tlsf.* *liblog.a:log.* *liblog.a:log_freertos.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libriscv.a:interrupt.* *libriscv.a:vectors.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .literal EXCLUDE_FILE(*libesp_ringbuf.a *libfreertos.a *libgcov.a *librtc.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_event.a:default_event_loop.* *libesp_event.a:esp_event.* *libesp_hw_support.a:cpu.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:rtc_init.* *libesp_hw_support.a:rtc_pm.* *libesp_hw_support.a:rtc_sleep.* *libesp_hw_support.a:rtc_time.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:esp_system.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:lib2funcs.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libheap.a:multi_heap.* *libheap.a:tlsf.* *liblog.a:log.* *liblog.a:log_freertos.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libriscv.a:interrupt.* *libriscv.a:vectors.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .literal.* EXCLUDE_FILE(*libesp_ringbuf.a *libfreertos.a *libgcov.a *librtc.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_event.a:default_event_loop.* *libesp_event.a:esp_event.* *libesp_hw_support.a:cpu.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:rtc_init.* *libesp_hw_support.a:rtc_pm.* *libesp_hw_support.a:rtc_sleep.* *libesp_hw_support.a:rtc_time.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:esp_system.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:lib2funcs.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libheap.a:multi_heap.* *libheap.a:tlsf.* *liblog.a:log.* *liblog.a:log_freertos.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libriscv.a:interrupt.* *libriscv.a:vectors.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .text EXCLUDE_FILE(*libesp_ringbuf.a *libfreertos.a *libgcov.a *librtc.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_event.a:default_event_loop.* *libesp_event.a:esp_event.* *libesp_hw_support.a:cpu.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:rtc_init.* *libesp_hw_support.a:rtc_pm.* *libesp_hw_support.a:rtc_sleep.* *libesp_hw_support.a:rtc_time.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:esp_system.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:lib2funcs.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libheap.a:multi_heap.* *libheap.a:tlsf.* *liblog.a:log.* *liblog.a:log_freertos.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libriscv.a:interrupt.* *libriscv.a:vectors.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .text.*)
  375. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifi0iram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifi0iram.*)
  376. *(EXCLUDE_FILE(*libpp.a) .wifiorslpiram EXCLUDE_FILE(*libpp.a) .wifiorslpiram.*)
  377. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifirxiram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifirxiram.*)
  378. *(.wifislpiram .wifislpiram.*)
  379. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifislprxiram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifislprxiram.*)
  380. *libesp_event.a:default_event_loop.*(.text .text.esp_event_handler_instance_register .text.esp_event_handler_instance_unregister .text.esp_event_handler_register .text.esp_event_handler_unregister .text.esp_event_loop_create_default .text.esp_event_loop_delete_default .text.esp_event_post)
  381. *libesp_event.a:esp_event.*(.text .text.base_node_add_handler .text.base_node_remove_all_handler .text.base_node_remove_handler .text.esp_event_dump .text.esp_event_handler_instance_register_with .text.esp_event_handler_instance_unregister_with .text.esp_event_handler_register_with .text.esp_event_handler_register_with_internal .text.esp_event_handler_unregister_with .text.esp_event_handler_unregister_with_internal .text.esp_event_loop_create .text.esp_event_loop_delete .text.esp_event_loop_run .text.esp_event_loop_run_task .text.esp_event_post_to .text.handler_execute .text.handler_instances_add .text.handler_instances_remove .text.handler_instances_remove_all .text.loop_node_add_handler .text.loop_node_remove_all_handler .text.loop_node_remove_handler)
  382. *libesp_hw_support.a:cpu.*(.text .text.esp_cpu_clear_breakpoint .text.esp_cpu_clear_watchpoint .text.esp_cpu_configure_region_protection .text.esp_cpu_intr_get_desc .text.esp_cpu_set_breakpoint .text.esp_cpu_set_watchpoint .text.is_intr_num_resv)
  383. *libesp_hw_support.a:rtc_init.*(.text .text.calibrate_ocode .text.get_dig_dbias_by_efuse .text.get_rtc_dbias_by_efuse .text.rtc_init .text.rtc_vddsdio_get_config .text.set_ocode_by_efuse .text.set_rtc_dig_dbias)
  384. *libesp_system.a:esp_system.*(.text .text.esp_get_free_heap_size .text.esp_get_free_internal_heap_size .text.esp_get_idf_version .text.esp_get_minimum_free_heap_size .text.esp_register_shutdown_handler .text.esp_unregister_shutdown_handler)
  385. *libfreertos.a:port.*(.literal.esp_startup_start_app .text.esp_startup_start_app)
  386. *libfreertos.a:port_common.*(.literal.main_task .text.main_task)
  387. *libheap.a:multi_heap.*(.text .text.multi_heap_check .text.multi_heap_dump .text.multi_heap_dump_tlsf .text.multi_heap_free_size_impl .text.multi_heap_get_block_owner .text.multi_heap_get_info_impl .text.multi_heap_get_info_tlsf .text.multi_heap_minimum_free_size_impl .text.multi_heap_register_impl)
  388. *libheap.a:tlsf.*(.text .text.control_construct .text.default_walker .text.integrity_walker .text.tlsf_add_pool .text.tlsf_check .text.tlsf_check_pool .text.tlsf_create .text.tlsf_create_with_pool .text.tlsf_destroy .text.tlsf_fit_size .text.tlsf_pool_overhead .text.tlsf_remove_pool .text.tlsf_walk_pool)
  389. *liblog.a:log.*(.text .text.esp_log_level_get .text.esp_log_level_set .text.esp_log_set_vprintf .text.esp_log_writev .text.heap_bubble_down .text.s_log_level_get_and_unlock)
  390. *liblog.a:log_freertos.*(.text .text.esp_log_system_timestamp)
  391. *(.stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
  392. *(.irom0.text) /* catch stray ICACHE_RODATA_ATTR */
  393. *(.fini.literal)
  394. *(.fini)
  395. *(.gnu.version)
  396. /** CPU will try to prefetch up to 16 bytes of
  397. * of instructions. This means that any configuration (e.g. MMU, PMS) must allow
  398. * safe access to up to 16 bytes after the last real instruction, add
  399. * dummy bytes to ensure this
  400. */
  401. . += _esp_flash_mmap_prefetch_pad_size;
  402. _text_end = ABSOLUTE(.);
  403. _instruction_reserved_end = ABSOLUTE(.);
  404. _etext = .;
  405. /**
  406. * Similar to _iram_start, this symbol goes here so it is
  407. * resolved by addr2line in preference to the first symbol in
  408. * the flash.text segment.
  409. */
  410. _flash_cache_start = ABSOLUTE(0);
  411. } > default_code_seg
  412. /**
  413. * This dummy section represents the .flash.text section but in default_rodata_seg.
  414. * Thus, it must have its alignment and (at least) its size.
  415. */
  416. .flash_rodata_dummy (NOLOAD):
  417. {
  418. _flash_rodata_dummy_start = .;
  419. /* Start at the same alignment constraint than .flash.text */
  420. . = ALIGN(ALIGNOF(.flash.text));
  421. /* Create an empty gap as big as .flash.text section */
  422. . = . + SIZEOF(.flash.text);
  423. /* Prepare the alignment of the section above. Few bytes (0x20) must be
  424. * added for the mapping header. */
  425. . = ALIGN(0x10000) + 0x20;
  426. _rodata_reserved_start = .;
  427. } > default_rodata_seg
  428. .flash.appdesc : ALIGN(0x10)
  429. {
  430. _rodata_start = ABSOLUTE(.);
  431. *(.rodata_desc .rodata_desc.*) /* Should be the first. App version info. DO NOT PUT ANYTHING BEFORE IT! */
  432. *(.rodata_custom_desc .rodata_custom_desc.*) /* Should be the second. Custom app version info. DO NOT PUT ANYTHING BEFORE IT! */
  433. /* Create an empty gap within this section. Thanks to this, the end of this
  434. * section will match .flash.rodata's begin address. Thus, both sections
  435. * will be merged when creating the final bin image. */
  436. . = ALIGN(ALIGNOF(.flash.rodata));
  437. } >default_rodata_seg
  438. .flash.rodata : ALIGN(0x10)
  439. {
  440. _flash_rodata_start = ABSOLUTE(.);
  441. *(EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .rodata EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .rodata.* EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .sdata2 EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .sdata2.* EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .srodata EXCLUDE_FILE(*libgcov.a *libphy.a *libapp_trace.a:app_trace.* *libapp_trace.a:app_trace_util.* *libapp_trace.a:port_uart.* *libesp_hw_support.a:esp_memory_utils.* *libesp_hw_support.a:rtc_clk.* *libesp_hw_support.a:systimer.* *libesp_rom.a:esp_rom_regi2c.* *libesp_rom.a:esp_rom_spiflash.* *libesp_rom.a:esp_rom_systimer.* *libesp_system.a:esp_err.* *libesp_system.a:ubsan.* *libgcc.a:_divsf3.* *libgcc.a:save-restore.* *libhal.a:cache_hal.* *libhal.a:i2c_hal_iram.* *libhal.a:ledc_hal_iram.* *libhal.a:mmu_hal.* *libhal.a:spi_flash_encrypt_hal_iram.* *libhal.a:spi_flash_hal_gpspi.* *libhal.a:spi_flash_hal_iram.* *libhal.a:spi_hal_iram.* *libhal.a:spi_slave_hal_iram.* *libhal.a:systimer_hal.* *libhal.a:wdt_hal_iram.* *libnewlib.a:abort.* *libnewlib.a:assert.* *libnewlib.a:heap.* *libnewlib.a:stdatomic.* *libsoc.a:lldesc.* *libspi_flash.a:flash_brownout_hook.* *libspi_flash.a:memspi_host_driver.* *libspi_flash.a:spi_flash_chip_boya.* *libspi_flash.a:spi_flash_chip_gd.* *libspi_flash.a:spi_flash_chip_generic.* *libspi_flash.a:spi_flash_chip_issi.* *libspi_flash.a:spi_flash_chip_mxic.* *libspi_flash.a:spi_flash_chip_th.* *libspi_flash.a:spi_flash_chip_winbond.*) .srodata.*)
  442. *(.rodata_wlog_error .rodata_wlog_error.*)
  443. *(.rodata_wlog_info .rodata_wlog_info.*)
  444. *(.rodata_wlog_warning .rodata_wlog_warning.*)
  445. *(.irom1.text) /* catch stray ICACHE_RODATA_ATTR */
  446. *(.gnu.linkonce.r.*)
  447. *(.rodata1)
  448. __XT_EXCEPTION_TABLE_ = ABSOLUTE(.);
  449. *(.xt_except_table)
  450. *(.gcc_except_table .gcc_except_table.*)
  451. *(.gnu.linkonce.e.*)
  452. *(.gnu.version_r)
  453. . = (. + 7) & ~ 3;
  454. /*
  455. * C++ constructor and destructor tables
  456. * Don't include anything from crtbegin.o or crtend.o, as IDF doesn't use toolchain crt.
  457. *
  458. * RISC-V gcc is configured with --enable-initfini-array so it emits an .init_array section instead.
  459. * But the init_priority sections will be sorted for iteration in ascending order during startup.
  460. * The rest of the init_array sections is sorted for iteration in descending order during startup, however.
  461. * Hence a different section is generated for the init_priority functions which is iterated in
  462. * ascending order during startup. The corresponding code can be found in startup.c.
  463. */
  464. __init_priority_array_start = ABSOLUTE(.);
  465. KEEP (*(EXCLUDE_FILE (*crtend.* *crtbegin.*) .init_array.*))
  466. __init_priority_array_end = ABSOLUTE(.);
  467. __init_array_start = ABSOLUTE(.);
  468. KEEP (*(EXCLUDE_FILE (*crtend.* *crtbegin.*) .init_array))
  469. __init_array_end = ABSOLUTE(.);
  470. KEEP (*crtbegin.*(.dtors))
  471. KEEP (*(EXCLUDE_FILE (*crtend.*) .dtors))
  472. KEEP (*(SORT(.dtors.*)))
  473. KEEP (*(.dtors))
  474. /* C++ exception handlers table: */
  475. __XT_EXCEPTION_DESCS_ = ABSOLUTE(.);
  476. *(.xt_except_desc)
  477. *(.gnu.linkonce.h.*)
  478. __XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
  479. *(.xt_except_desc_end)
  480. *(.dynamic)
  481. *(.gnu.version_d)
  482. /* Addresses of memory regions reserved via SOC_RESERVE_MEMORY_REGION() */
  483. soc_reserved_memory_region_start = ABSOLUTE(.);
  484. KEEP (*(.reserved_memory_address))
  485. soc_reserved_memory_region_end = ABSOLUTE(.);
  486. /* System init functions registered via ESP_SYSTEM_INIT_FN */
  487. _esp_system_init_fn_array_start = ABSOLUTE(.);
  488. KEEP (*(SORT_BY_INIT_PRIORITY(.esp_system_init_fn.*)))
  489. _esp_system_init_fn_array_end = ABSOLUTE(.);
  490. _rodata_end = ABSOLUTE(.);
  491. /* Literals are also RO data. */
  492. _lit4_start = ABSOLUTE(.);
  493. *(*.lit4)
  494. *(.lit4.*)
  495. *(.gnu.linkonce.lit4.*)
  496. _lit4_end = ABSOLUTE(.);
  497. . = ALIGN(4);
  498. _thread_local_start = ABSOLUTE(.);
  499. *(.tdata)
  500. *(.tdata.*)
  501. *(.tbss)
  502. *(.tbss.*)
  503. _thread_local_end = ABSOLUTE(.);
  504. _rodata_reserved_end = ABSOLUTE(.);
  505. . = ALIGN(ALIGNOF(.eh_frame));
  506. } > default_rodata_seg
  507. /* Keep this section shall be at least aligned on 4 */
  508. .eh_frame : ALIGN(8)
  509. {
  510. __eh_frame = ABSOLUTE(.);
  511. KEEP (*(.eh_frame))
  512. __eh_frame_end = ABSOLUTE(.);
  513. /* Guarantee that this section and the next one will be merged by making
  514. * them adjacent. */
  515. . = ALIGN(ALIGNOF(.eh_frame_hdr));
  516. } > default_rodata_seg
  517. /* To avoid any exception in C++ exception frame unwinding code, this section
  518. * shall be aligned on 8. */
  519. .eh_frame_hdr : ALIGN(8)
  520. {
  521. __eh_frame_hdr = ABSOLUTE(.);
  522. KEEP (*(.eh_frame_hdr))
  523. __eh_frame_hdr_end = ABSOLUTE(.);
  524. } > default_rodata_seg
  525. .flash.rodata_noload (NOLOAD) :
  526. {
  527. . = ALIGN (4);
  528. *(.rodata_wlog_debug .rodata_wlog_debug.*)
  529. *(.rodata_wlog_verbose .rodata_wlog_verbose.*)
  530. } > default_rodata_seg
  531. /* Marks the end of IRAM code segment */
  532. .iram0.text_end (NOLOAD) :
  533. {
  534. /* iram_end_test section exists for use by Memprot unit tests only */
  535. *(.iram_end_test)
  536. /* ESP32-C3 memprot requires 16B padding for possible CPU prefetch and 512B alignment for PMS split lines */
  537. . += _esp_memprot_prefetch_pad_size;
  538. . = ALIGN(_esp_memprot_align_size);
  539. _iram_text_end = ABSOLUTE(.);
  540. } > iram0_0_seg
  541. .iram0.data :
  542. {
  543. . = ALIGN(16);
  544. _iram_data_start = ABSOLUTE(.);
  545. *(.iram.data .iram.data.*)
  546. _coredump_iram_start = ABSOLUTE(.);
  547. *(.iram2.coredump .iram2.coredump.*)
  548. _coredump_iram_end = ABSOLUTE(.);
  549. _iram_data_end = ABSOLUTE(.);
  550. } > iram0_0_seg
  551. .iram0.bss (NOLOAD) :
  552. {
  553. . = ALIGN(16);
  554. _iram_bss_start = ABSOLUTE(.);
  555. *(.iram.bss .iram.bss.*)
  556. _iram_bss_end = ABSOLUTE(.);
  557. . = ALIGN(16);
  558. _iram_end = ABSOLUTE(.);
  559. } > iram0_0_seg
  560. /* Marks the end of data, bss and possibly rodata */
  561. .dram0.heap_start (NOLOAD) :
  562. {
  563. . = ALIGN (16);
  564. _heap_start = ABSOLUTE(.);
  565. } > dram0_0_seg
  566. }
  567. ASSERT(((_iram_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
  568. "IRAM0 segment data does not fit.")
  569. ASSERT(((_heap_start - ORIGIN(dram0_0_seg)) <= LENGTH(dram0_0_seg)),
  570. "DRAM segment data does not fit.")