sections.ld 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. /* Automatically generated file; DO NOT EDIT */
  2. /* Espressif IoT Development Framework Linker Script */
  3. /* Generated from: /home/wcx/rt-thread/bsp/ESP32_C3/packages/ESP-IDF-latest/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. *app_trace/app_trace.*(.literal .literal.* .text .text.*)
  121. *app_trace/app_trace_util.*(.literal .literal.* .text .text.*)
  122. *app_trace/port_uart.*(.literal .literal.* .text .text.*)
  123. *esp_event/default_event_loop.*(.literal.esp_event_isr_post .text.esp_event_isr_post)
  124. *esp_event/esp_event.*(.literal.esp_event_isr_post_to .text.esp_event_isr_post_to)
  125. *esp_hw_support/cpu.*(.literal.esp_cpu_compare_and_set .text.esp_cpu_compare_and_set)
  126. *esp_hw_support/cpu.*(.literal.esp_cpu_reset .text.esp_cpu_reset)
  127. *esp_hw_support/cpu.*(.literal.esp_cpu_stall .text.esp_cpu_stall)
  128. *esp_hw_support/cpu.*(.literal.esp_cpu_unstall .text.esp_cpu_unstall)
  129. *esp_hw_support/cpu.*(.literal.esp_cpu_wait_for_intr .text.esp_cpu_wait_for_intr)
  130. *esp_hw_support/esp_memory_utils.*(.literal .literal.* .text .text.*)
  131. *esp_hw_support/rtc_clk.*(.literal .literal.* .text .text.*)
  132. *esp_hw_support/rtc_init.*(.literal.rtc_vddsdio_set_config .text.rtc_vddsdio_set_config)
  133. *esp_hw_support/rtc_pm.*(.literal .literal.* .text .text.*)
  134. *esp_hw_support/rtc_sleep.*(.literal .literal.* .text .text.*)
  135. *esp_hw_support/rtc_time.*(.literal .literal.* .text .text.*)
  136. *esp_hw_support/systimer.*(.literal .literal.* .text .text.*)
  137. *esp_ringbuf/(.literal .literal.* .text .text.*)
  138. *esp_rom/esp_rom_regi2c.*(.literal .literal.* .text .text.*)
  139. *esp_rom/esp_rom_spiflash.*(.literal .literal.* .text .text.*)
  140. *esp_rom/esp_rom_systimer.*(.literal .literal.* .text .text.*)
  141. *esp_system/esp_err.*(.literal .literal.* .text .text.*)
  142. *esp_system/esp_system.*(.literal.esp_system_abort .text.esp_system_abort)
  143. *esp_system/ubsan.*(.literal .literal.* .text .text.*)
  144. *gcc/_divsf3.*(.literal .literal.* .text .text.*)
  145. *gcc/lib2funcs.*(.literal .literal.* .text .text.*)
  146. *gcc/save-restore.*(.literal .literal.* .text .text.*)
  147. *gcov/(.literal .literal.* .text .text.*)
  148. *hal/cache_hal.*(.literal .literal.* .text .text.*)
  149. *hal/i2c_hal_iram.*(.literal .literal.* .text .text.*)
  150. *hal/ledc_hal_iram.*(.literal .literal.* .text .text.*)
  151. *hal/mmu_hal.*(.literal .literal.* .text .text.*)
  152. *hal/spi_flash_encrypt_hal_iram.*(.literal .literal.* .text .text.*)
  153. *hal/spi_flash_hal_gpspi.*(.literal .literal.* .text .text.*)
  154. *hal/spi_flash_hal_iram.*(.literal .literal.* .text .text.*)
  155. *hal/spi_hal_iram.*(.literal .literal.* .text .text.*)
  156. *hal/spi_slave_hal_iram.*(.literal .literal.* .text .text.*)
  157. *hal/systimer_hal.*(.literal .literal.* .text .text.*)
  158. *hal/wdt_hal_iram.*(.literal .literal.* .text .text.*)
  159. *heap/multi_heap.*(.literal .literal.* .text .text.*)
  160. *heap/tlsf.*(.literal .literal.* .text .text.*)
  161. *log/log.*(.literal.esp_log_write .text.esp_log_write)
  162. *log/log_freertos.*(.literal.esp_log_early_timestamp .text.esp_log_early_timestamp)
  163. *log/log_freertos.*(.literal.esp_log_impl_lock .text.esp_log_impl_lock)
  164. *log/log_freertos.*(.literal.esp_log_impl_lock_timeout .text.esp_log_impl_lock_timeout)
  165. *log/log_freertos.*(.literal.esp_log_impl_unlock .text.esp_log_impl_unlock)
  166. *log/log_freertos.*(.literal.esp_log_timestamp .text.esp_log_timestamp)
  167. *libnet80211.a:(.wifi0iram .wifi0iram.*)
  168. *libnet80211.a:(.wifirxiram .wifirxiram.*)
  169. *libnet80211.a:(.wifislprxiram .wifislprxiram.*)
  170. *newlib/abort.*(.literal .literal.* .text .text.*)
  171. *newlib/assert.*(.literal .literal.* .text .text.*)
  172. *newlib/heap.*(.literal .literal.* .text .text.*)
  173. *newlib/stdatomic.*(.literal .literal.* .text .text.*)
  174. *libpp.a:(.wifi0iram .wifi0iram.*)
  175. *libpp.a:(.wifiorslpiram .wifiorslpiram.*)
  176. *libpp.a:(.wifirxiram .wifirxiram.*)
  177. *libpp.a:(.wifislprxiram .wifislprxiram.*)
  178. *riscv/interrupt.*(.literal .literal.* .text .text.*)
  179. *riscv/vectors.*(.literal .literal.* .text .text.*)
  180. *librtc.a:(.literal .literal.* .text .text.*)
  181. *soc/lldesc.*(.literal .literal.* .text .text.*)
  182. *spi_flash/flash_brownout_hook.*(.literal .literal.* .text .text.*)
  183. *spi_flash/memspi_host_driver.*(.literal .literal.* .text .text.*)
  184. *spi_flash/spi_flash_chip_boya.*(.literal .literal.* .text .text.*)
  185. *spi_flash/spi_flash_chip_gd.*(.literal .literal.* .text .text.*)
  186. *spi_flash/spi_flash_chip_generic.*(.literal .literal.* .text .text.*)
  187. *spi_flash/spi_flash_chip_issi.*(.literal .literal.* .text .text.*)
  188. *spi_flash/spi_flash_chip_mxic.*(.literal .literal.* .text .text.*)
  189. *spi_flash/spi_flash_chip_th.*(.literal .literal.* .text .text.*)
  190. *spi_flash/spi_flash_chip_winbond.*(.literal .literal.* .text .text.*)
  191. *kernel/src/*.*(.literal .literal.* .text .text.*)
  192. *kernel/libcpu/risc-v/common/context_gcc.*(.literal .literal.* .text .text.*)
  193. } > iram0_0_seg
  194. /**
  195. * This section is required to skip .iram0.text area because iram0_0_seg and
  196. * dram0_0_seg reflect the same address space on different buses.
  197. */
  198. .dram0.dummy (NOLOAD):
  199. {
  200. . = ORIGIN(dram0_0_seg) + _iram_end - _iram_start;
  201. } > dram0_0_seg
  202. .dram0.data :
  203. {
  204. _data_start = ABSOLUTE(.);
  205. *(.gnu.linkonce.d.*)
  206. *(.data1)
  207. __global_pointer$ = . + 0x800;
  208. *(.sdata)
  209. *(.sdata.*)
  210. *(.gnu.linkonce.s.*)
  211. *(.gnu.linkonce.s2.*)
  212. *(.jcr)
  213. *(EXCLUDE_FILE(*bt/* *libbtdm_app.a *libnimble.a) .data EXCLUDE_FILE(*bt/* *libbtdm_app.a *libnimble.a) .data.*)
  214. *(.dram1 .dram1.*)
  215. _coredump_dram_start = ABSOLUTE(.);
  216. *(.dram2.coredump .dram2.coredump.*)
  217. _coredump_dram_end = ABSOLUTE(.);
  218. *app_trace/app_trace.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  219. *app_trace/app_trace_util.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  220. *app_trace/port_uart.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  221. _btdm_data_start = ABSOLUTE(.);
  222. *libbtdm_app.a:(.data .data.*)
  223. . = ALIGN(4);
  224. _btdm_data_end = ABSOLUTE(.);
  225. _bt_data_start = ABSOLUTE(.);
  226. *bt/*(.data .data.*)
  227. . = ALIGN(4);
  228. _bt_data_end = ABSOLUTE(.);
  229. *esp_hw_support/esp_memory_utils.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  230. *esp_hw_support/rtc_clk.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  231. *esp_hw_support/systimer.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  232. *esp_rom/esp_rom_regi2c.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  233. *esp_rom/esp_rom_spiflash.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  234. *esp_rom/esp_rom_systimer.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  235. *esp_system/esp_err.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  236. *esp_system/ubsan.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  237. *gcc/_divsf3.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  238. *gcc/save-restore.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  239. *gcov/(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  240. *hal/cache_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  241. *hal/i2c_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  242. *hal/ledc_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  243. *hal/mmu_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  244. *hal/spi_flash_encrypt_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  245. *hal/spi_flash_hal_gpspi.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  246. *hal/spi_flash_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  247. *hal/spi_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  248. *hal/spi_slave_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  249. *hal/systimer_hal.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  250. *hal/wdt_hal_iram.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  251. *heap/multi_heap.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  252. *heap/tlsf.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  253. *newlib/abort.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  254. *newlib/assert.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  255. *newlib/heap.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  256. *newlib/stdatomic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  257. _nimble_data_start = ABSOLUTE(.);
  258. *libnimble.a:(.data .data.*)
  259. . = ALIGN(4);
  260. _nimble_data_end = ABSOLUTE(.);
  261. *libphy.a:(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  262. *soc/lldesc.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  263. *spi_flash/flash_brownout_hook.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  264. *spi_flash/memspi_host_driver.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  265. *spi_flash/spi_flash_chip_boya.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  266. *spi_flash/spi_flash_chip_gd.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  267. *spi_flash/spi_flash_chip_generic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  268. *spi_flash/spi_flash_chip_issi.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  269. *spi_flash/spi_flash_chip_mxic.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  270. *spi_flash/spi_flash_chip_th.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  271. *spi_flash/spi_flash_chip_winbond.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  272. *kernel/src/*.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  273. *kernel/libcpu/risc-v/common/context_gcc.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
  274. _data_end = ABSOLUTE(.);
  275. . = ALIGN(4);
  276. } > dram0_0_seg
  277. /**
  278. * This section holds data that should not be initialized at power up.
  279. * The section located in Internal SRAM memory region. The macro _NOINIT
  280. * can be used as attribute to place data into this section.
  281. * See the "esp_attr.h" file for more information.
  282. */
  283. .noinit (NOLOAD):
  284. {
  285. . = ALIGN(4);
  286. _noinit_start = ABSOLUTE(.);
  287. *(.noinit .noinit.*)
  288. . = ALIGN(4) ;
  289. _noinit_end = ABSOLUTE(.);
  290. } > dram0_0_seg
  291. .stack :
  292. {
  293. . = ALIGN(8);
  294. __STACKSIZE__ = 51200;
  295. __stack_start__ = .;
  296. *(.stack*)
  297. . += __STACKSIZE__;
  298. __stack_cpu0 = .;
  299. __stack_end__ = .;
  300. } > dram0_0_seg
  301. PROVIDE( __rt_rvstack = __stack_end__);
  302. .heap :
  303. {
  304. . = ALIGN(8);
  305. __HEAPSIZE__ = 76800;
  306. __heap_start__ = .;
  307. . += __HEAPSIZE__;
  308. __heap_end__ = .;
  309. } > dram0_0_seg
  310. /* Shared RAM */
  311. .dram0.bss (NOLOAD) :
  312. {
  313. . = ALIGN (8);
  314. _bss_start = ABSOLUTE(.);
  315. *(.bss .bss.*)
  316. *(.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)
  317. *(.ext_ram.bss .ext_ram.bss.*)
  318. *(COMMON)
  319. _bt_bss_start = ABSOLUTE(.);
  320. *bt/*(.bss .bss.* COMMON)
  321. . = ALIGN(4);
  322. _bt_bss_end = ABSOLUTE(.);
  323. _btdm_bss_start = ABSOLUTE(.);
  324. *libbtdm_app.a:(.bss .bss.* COMMON)
  325. . = ALIGN(4);
  326. _btdm_bss_end = ABSOLUTE(.);
  327. _nimble_bss_start = ABSOLUTE(.);
  328. *libnimble.a:(.bss .bss.* COMMON)
  329. . = ALIGN(4);
  330. _nimble_bss_end = ABSOLUTE(.);
  331. *(.dynsbss)
  332. *(.sbss)
  333. *(.sbss.*)
  334. *(.gnu.linkonce.sb.*)
  335. *(.scommon)
  336. *(.sbss2)
  337. *(.sbss2.*)
  338. *(.gnu.linkonce.sb2.*)
  339. *(.dynbss)
  340. *(.share.mem)
  341. *(.gnu.linkonce.b.*)
  342. . = ALIGN (8);
  343. _bss_end = ABSOLUTE(.);
  344. } > dram0_0_seg
  345. ASSERT(((_bss_end - ORIGIN(dram0_0_seg)) <= LENGTH(dram0_0_seg)), "DRAM segment data does not fit.")
  346. .flash.text :
  347. {
  348. _stext = .;
  349. _instruction_reserved_start = ABSOLUTE(.);
  350. _text_start = ABSOLUTE(.);
  351. *(EXCLUDE_FILE(*esp_ringbuf/* *gcov/* *librtc.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_event/default_event_loop.* *esp_event/esp_event.* *esp_hw_support/cpu.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/rtc_init.* *esp_hw_support/rtc_pm.* *esp_hw_support/rtc_sleep.* *esp_hw_support/rtc_time.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/esp_system.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/lib2funcs.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *log/log.* *log/log_freertos.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *riscv/interrupt.* *riscv/vectors.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .literal EXCLUDE_FILE(*esp_ringbuf/* *gcov/* *librtc.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_event/default_event_loop.* *esp_event/esp_event.* *esp_hw_support/cpu.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/rtc_init.* *esp_hw_support/rtc_pm.* *esp_hw_support/rtc_sleep.* *esp_hw_support/rtc_time.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/esp_system.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/lib2funcs.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *log/log.* *log/log_freertos.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *riscv/interrupt.* *riscv/vectors.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .literal.* EXCLUDE_FILE(*esp_ringbuf/* *gcov/* *librtc.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_event/default_event_loop.* *esp_event/esp_event.* *esp_hw_support/cpu.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/rtc_init.* *esp_hw_support/rtc_pm.* *esp_hw_support/rtc_sleep.* *esp_hw_support/rtc_time.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/esp_system.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/lib2funcs.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *log/log.* *log/log_freertos.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *riscv/interrupt.* *riscv/vectors.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .text EXCLUDE_FILE(*esp_ringbuf/* *gcov/* *librtc.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_event/default_event_loop.* *esp_event/esp_event.* *esp_hw_support/cpu.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/rtc_init.* *esp_hw_support/rtc_pm.* *esp_hw_support/rtc_sleep.* *esp_hw_support/rtc_time.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/esp_system.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/lib2funcs.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *log/log.* *log/log_freertos.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *riscv/interrupt.* *riscv/vectors.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .text.*)
  352. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifi0iram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifi0iram.*)
  353. *(EXCLUDE_FILE(*libpp.a) .wifiorslpiram EXCLUDE_FILE(*libpp.a) .wifiorslpiram.*)
  354. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifirxiram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifirxiram.*)
  355. *(.wifislpiram .wifislpiram.*)
  356. *(EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifislprxiram EXCLUDE_FILE(*libnet80211.a *libpp.a) .wifislprxiram.*)
  357. *esp_event/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)
  358. *esp_event/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)
  359. *esp_hw_support/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)
  360. *esp_hw_support/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)
  361. *esp_system/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)
  362. *log/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)
  363. *log/log_freertos.*(.text .text.esp_log_system_timestamp)
  364. *(.stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
  365. *(.irom0.text) /* catch stray ICACHE_RODATA_ATTR */
  366. *(.fini.literal)
  367. *(.fini)
  368. *(.gnu.version)
  369. /* section information for finsh shell */
  370. . = ALIGN(8);
  371. __fsymtab_start = .;
  372. KEEP(*(FSymTab))
  373. __fsymtab_end = .;
  374. . = ALIGN(8);
  375. __vsymtab_start = .;
  376. KEEP(*(VSymTab))
  377. __vsymtab_end = .;
  378. . = ALIGN(8);
  379. /** CPU will try to prefetch up to 16 bytes of
  380. * of instructions. This means that any configuration (e.g. MMU, PMS) must allow
  381. * safe access to up to 16 bytes after the last real instruction, add
  382. * dummy bytes to ensure this
  383. */
  384. . += _esp_flash_mmap_prefetch_pad_size;
  385. _text_end = ABSOLUTE(.);
  386. _instruction_reserved_end = ABSOLUTE(.);
  387. _etext = .;
  388. /**
  389. * Similar to _iram_start, this symbol goes here so it is
  390. * resolved by addr2line in preference to the first symbol in
  391. * the flash.text segment.
  392. */
  393. _flash_cache_start = ABSOLUTE(0);
  394. } > default_code_seg
  395. /**
  396. * This dummy section represents the .flash.text section but in default_rodata_seg.
  397. * Thus, it must have its alignment and (at least) its size.
  398. */
  399. .flash_rodata_dummy (NOLOAD):
  400. {
  401. _flash_rodata_dummy_start = .;
  402. /* Start at the same alignment constraint than .flash.text */
  403. . = ALIGN(ALIGNOF(.flash.text));
  404. /* Create an empty gap as big as .flash.text section */
  405. . = . + SIZEOF(.flash.text);
  406. /* Prepare the alignment of the section above. Few bytes (0x20) must be
  407. * added for the mapping header. */
  408. . = ALIGN(0x10000) + 0x20;
  409. _rodata_reserved_start = .;
  410. } > default_rodata_seg
  411. .flash.appdesc : ALIGN(0x10)
  412. {
  413. _rodata_start = ABSOLUTE(.);
  414. *(.rodata_desc .rodata_desc.*) /* Should be the first. App version info. DO NOT PUT ANYTHING BEFORE IT! */
  415. *(.rodata_custom_desc .rodata_custom_desc.*) /* Should be the second. Custom app version info. DO NOT PUT ANYTHING BEFORE IT! */
  416. /* Create an empty gap within this section. Thanks to this, the end of this
  417. * section will match .flash.rodata's begin address. Thus, both sections
  418. * will be merged when creating the final bin image. */
  419. . = ALIGN(ALIGNOF(.flash.rodata));
  420. } >default_rodata_seg
  421. .flash.rodata : ALIGN(0x10)
  422. {
  423. _flash_rodata_start = ABSOLUTE(.);
  424. *(EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .rodata EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .rodata.* EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .sdata2 EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .sdata2.* EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .srodata EXCLUDE_FILE(*gcov/* *libphy.a *app_trace/app_trace.* *app_trace/app_trace_util.* *app_trace/port_uart.* *esp_hw_support/esp_memory_utils.* *esp_hw_support/rtc_clk.* *esp_hw_support/systimer.* *esp_rom/esp_rom_regi2c.* *esp_rom/esp_rom_spiflash.* *esp_rom/esp_rom_systimer.* *esp_system/esp_err.* *esp_system/ubsan.* *gcc/_divsf3.* *gcc/save-restore.* *hal/cache_hal.* *hal/i2c_hal_iram.* *hal/ledc_hal_iram.* *hal/mmu_hal.* *hal/spi_flash_encrypt_hal_iram.* *hal/spi_flash_hal_gpspi.* *hal/spi_flash_hal_iram.* *hal/spi_hal_iram.* *hal/spi_slave_hal_iram.* *hal/systimer_hal.* *hal/wdt_hal_iram.* *heap/multi_heap.* *heap/tlsf.* *newlib/abort.* *newlib/assert.* *newlib/heap.* *newlib/stdatomic.* *soc/lldesc.* *spi_flash/flash_brownout_hook.* *spi_flash/memspi_host_driver.* *spi_flash/spi_flash_chip_boya.* *spi_flash/spi_flash_chip_gd.* *spi_flash/spi_flash_chip_generic.* *spi_flash/spi_flash_chip_issi.* *spi_flash/spi_flash_chip_mxic.* *spi_flash/spi_flash_chip_th.* *spi_flash/spi_flash_chip_winbond.* *kernel/src/*.* *kernel/libcpu/risc-v/common/context_gcc.* ) .srodata.*)
  425. *(.rodata_wlog_error .rodata_wlog_error.*)
  426. *(.rodata_wlog_info .rodata_wlog_info.*)
  427. *(.rodata_wlog_warning .rodata_wlog_warning.*)
  428. *(.irom1.text) /* catch stray ICACHE_RODATA_ATTR */
  429. *(.gnu.linkonce.r.*)
  430. *(.rodata1)
  431. __XT_EXCEPTION_TABLE_ = ABSOLUTE(.);
  432. *(.xt_except_table)
  433. *(.gcc_except_table .gcc_except_table.*)
  434. *(.gnu.linkonce.e.*)
  435. *(.gnu.version_r)
  436. . = (. + 7) & ~ 3;
  437. /*
  438. * C++ constructor and destructor tables
  439. * Don't include anything from crtbegin.o or crtend.o, as IDF doesn't use toolchain crt.
  440. *
  441. * RISC-V gcc is configured with --enable-initfini-array so it emits an .init_array section instead.
  442. * But the init_priority sections will be sorted for iteration in ascending order during startup.
  443. * The rest of the init_array sections is sorted for iteration in descending order during startup, however.
  444. * Hence a different section is generated for the init_priority functions which is iterated in
  445. * ascending order during startup. The corresponding code can be found in startup.c.
  446. */
  447. __init_priority_array_start = ABSOLUTE(.);
  448. KEEP (*(EXCLUDE_FILE (*crtend.* *crtbegin.*) .init_array.*))
  449. __init_priority_array_end = ABSOLUTE(.);
  450. __init_array_start = ABSOLUTE(.);
  451. KEEP (*(EXCLUDE_FILE (*crtend.* *crtbegin.*) .init_array))
  452. __init_array_end = ABSOLUTE(.);
  453. KEEP (*crtbegin.*(.dtors))
  454. KEEP (*(EXCLUDE_FILE (*crtend.*) .dtors))
  455. KEEP (*(SORT(.dtors.*)))
  456. KEEP (*(.dtors))
  457. /* C++ exception handlers table: */
  458. __XT_EXCEPTION_DESCS_ = ABSOLUTE(.);
  459. *(.xt_except_desc)
  460. *(.gnu.linkonce.h.*)
  461. __XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
  462. *(.xt_except_desc_end)
  463. *(.dynamic)
  464. *(.gnu.version_d)
  465. /* Addresses of memory regions reserved via SOC_RESERVE_MEMORY_REGION() */
  466. soc_reserved_memory_region_start = ABSOLUTE(.);
  467. KEEP (*(.reserved_memory_address))
  468. soc_reserved_memory_region_end = ABSOLUTE(.);
  469. /* System init functions registered via ESP_SYSTEM_INIT_FN */
  470. _esp_system_init_fn_array_start = ABSOLUTE(.);
  471. KEEP (*(SORT_BY_INIT_PRIORITY(.esp_system_init_fn.*)))
  472. _esp_system_init_fn_array_end = ABSOLUTE(.);
  473. /* section information for initial. */
  474. . = ALIGN(4);
  475. __rt_init_start = .;
  476. KEEP(*(SORT(.rti_fn*)))
  477. __rt_init_end = .;
  478. . = ALIGN(4);
  479. _rodata_end = ABSOLUTE(.);
  480. /* Literals are also RO data. */
  481. _lit4_start = ABSOLUTE(.);
  482. *(*.lit4)
  483. *(.lit4.*)
  484. *(.gnu.linkonce.lit4.*)
  485. _lit4_end = ABSOLUTE(.);
  486. . = ALIGN(4);
  487. _thread_local_start = ABSOLUTE(.);
  488. *(.tdata)
  489. *(.tdata.*)
  490. *(.tbss)
  491. *(.tbss.*)
  492. _thread_local_end = ABSOLUTE(.);
  493. _rodata_reserved_end = ABSOLUTE(.);
  494. . = ALIGN(ALIGNOF(.eh_frame));
  495. } > default_rodata_seg
  496. /* Keep this section shall be at least aligned on 4 */
  497. .eh_frame : ALIGN(8)
  498. {
  499. __eh_frame = ABSOLUTE(.);
  500. KEEP (*(.eh_frame))
  501. __eh_frame_end = ABSOLUTE(.);
  502. /* Guarantee that this section and the next one will be merged by making
  503. * them adjacent. */
  504. . = ALIGN(ALIGNOF(.eh_frame_hdr));
  505. } > default_rodata_seg
  506. /* To avoid any exception in C++ exception frame unwinding code, this section
  507. * shall be aligned on 8. */
  508. .eh_frame_hdr : ALIGN(8)
  509. {
  510. __eh_frame_hdr = ABSOLUTE(.);
  511. KEEP (*(.eh_frame_hdr))
  512. __eh_frame_hdr_end = ABSOLUTE(.);
  513. } > default_rodata_seg
  514. .flash.rodata_noload (NOLOAD) :
  515. {
  516. . = ALIGN (4);
  517. *(.rodata_wlog_debug .rodata_wlog_debug.*)
  518. *(.rodata_wlog_verbose .rodata_wlog_verbose.*)
  519. } > default_rodata_seg
  520. /* Marks the end of IRAM code segment */
  521. .iram0.text_end (NOLOAD) :
  522. {
  523. /* iram_end_test section exists for use by Memprot unit tests only */
  524. *(.iram_end_test)
  525. /* ESP32-C3 memprot requires 16B padding for possible CPU prefetch and 512B alignment for PMS split lines */
  526. . += _esp_memprot_prefetch_pad_size;
  527. . = ALIGN(_esp_memprot_align_size);
  528. _iram_text_end = ABSOLUTE(.);
  529. } > iram0_0_seg
  530. .iram0.data :
  531. {
  532. . = ALIGN(16);
  533. _iram_data_start = ABSOLUTE(.);
  534. *(.iram.data .iram.data.*)
  535. _coredump_iram_start = ABSOLUTE(.);
  536. *(.iram2.coredump .iram2.coredump.*)
  537. _coredump_iram_end = ABSOLUTE(.);
  538. _iram_data_end = ABSOLUTE(.);
  539. } > iram0_0_seg
  540. .iram0.bss (NOLOAD) :
  541. {
  542. . = ALIGN(16);
  543. _iram_bss_start = ABSOLUTE(.);
  544. *(.iram.bss .iram.bss.*)
  545. _iram_bss_end = ABSOLUTE(.);
  546. . = ALIGN(16);
  547. _iram_end = ABSOLUTE(.);
  548. } > iram0_0_seg
  549. /* Marks the end of data, bss and possibly rodata */
  550. .dram0.heap_start (NOLOAD) :
  551. {
  552. . = ALIGN (16);
  553. _heap_start = ABSOLUTE(.);
  554. } > dram0_0_seg
  555. }
  556. ASSERT(((_iram_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
  557. "IRAM0 segment data does not fit.")
  558. ASSERT(((_heap_start - ORIGIN(dram0_0_seg)) <= LENGTH(dram0_0_seg)),
  559. "DRAM segment data does not fit.")