2021-02-09 18:09:09 +08:00
|
|
|
[sections:rtc_fast_coredump]
|
|
|
|
entries:
|
|
|
|
.rtc.fast.coredump+
|
|
|
|
|
|
|
|
[sections:rtc_coredump]
|
|
|
|
entries:
|
|
|
|
.rtc.coredump+
|
|
|
|
|
|
|
|
[sections:dram_coredump]
|
|
|
|
entries:
|
2021-12-29 10:40:22 +08:00
|
|
|
.dram2.coredump+
|
2021-02-09 18:09:09 +08:00
|
|
|
|
2021-12-29 10:40:22 +08:00
|
|
|
# Always include .iram2.coredump section in the final linker script file,
|
|
|
|
# even though it may be empty. The coredump component will ignore empty
|
|
|
|
# sections when generating the ELF dump.
|
|
|
|
[sections:iram_coredump]
|
|
|
|
entries:
|
|
|
|
.iram2.coredump+
|
2021-02-09 18:09:09 +08:00
|
|
|
|
|
|
|
[scheme:coredump_default]
|
|
|
|
entries:
|
2021-02-09 18:26:41 +08:00
|
|
|
dram_coredump -> dram0_data
|
|
|
|
rtc_coredump -> rtc_data
|
|
|
|
rtc_fast_coredump -> rtc_force_fast
|
2021-12-29 10:40:22 +08:00
|
|
|
iram_coredump -> iram0_data
|
2021-02-09 18:09:09 +08:00
|
|
|
|
|
|
|
[mapping:coredump_default]
|
|
|
|
archive: *
|
|
|
|
entries:
|
2021-02-09 18:26:41 +08:00
|
|
|
* (coredump_default);
|
2021-02-16 13:44:18 +08:00
|
|
|
rtc_fast_coredump -> rtc_force_fast SURROUND(coredump_rtc_fast),
|
|
|
|
rtc_coredump -> rtc_data SURROUND(coredump_rtc),
|
2021-12-29 10:40:22 +08:00
|
|
|
dram_coredump -> dram0_data SURROUND(coredump_dram),
|
|
|
|
iram_coredump -> iram0_data SURROUND(coredump_iram)
|
2021-02-09 18:09:09 +08:00
|
|
|
|
2019-03-19 14:19:39 +08:00
|
|
|
[mapping:espcoredump]
|
2019-01-29 15:49:56 +01:00
|
|
|
archive: libespcoredump.a
|
2019-09-16 10:56:48 +10:00
|
|
|
entries:
|
|
|
|
if ESP_PANIC_HANDLER_IRAM = y:
|
2023-11-02 17:05:42 +08:00
|
|
|
core_dump_uart (noflash)
|
|
|
|
core_dump_flash (noflash)
|
|
|
|
core_dump_common (noflash)
|
|
|
|
core_dump_port (noflash)
|
|
|
|
core_dump_elf (noflash)
|
|
|
|
core_dump_binary (noflash)
|
2024-01-10 13:41:18 +01:00
|
|
|
core_dump_crc (noflash)
|
|
|
|
# ESP32 uses mbedtls for the sha and mbedtls is in the flash
|
|
|
|
if IDF_TARGET_ESP32 = n:
|
|
|
|
core_dump_sha (noflash)
|
2019-09-06 15:37:55 +08:00
|
|
|
else:
|
|
|
|
* (default)
|
2019-09-12 02:23:44 +08:00
|
|
|
|
|
|
|
[mapping:spi_flash_override]
|
|
|
|
archive: libspi_flash.a
|
|
|
|
entries:
|
2020-09-29 20:57:28 +05:30
|
|
|
if ESP_PANIC_HANDLER_IRAM = y && ESP_COREDUMP_ENABLE_TO_FLASH = y:
|
2019-09-12 02:23:44 +08:00
|
|
|
esp_flash_api (noflash_text)
|
|
|
|
esp_flash_spi_init (noflash_text)
|
|
|
|
else:
|
|
|
|
* (default)
|
2019-11-22 13:25:43 +08:00
|
|
|
|
2020-12-17 19:00:02 +08:00
|
|
|
[mapping:sha256_coredump]
|
|
|
|
archive: libmbedcrypto.a
|
2019-11-22 13:25:43 +08:00
|
|
|
entries:
|
2020-09-29 20:57:28 +05:30
|
|
|
if ESP_COREDUMP_CHECKSUM_SHA256 = y :
|
2019-11-22 13:25:43 +08:00
|
|
|
if MBEDTLS_HARDWARE_SHA = n:
|
|
|
|
sha256 (noflash_text)
|
|
|
|
else:
|
|
|
|
esp_sha256 (noflash_text)
|