@@ -33,10 +33,59 @@ SECTIONS
33
33
_loader_text_start = ABSOLUTE (.);
34
34
*(.stub .gnu .warning .gnu .linkonce .literal .* .gnu .linkonce .t .*.literal .gnu .linkonce .t .*)
35
35
*(.iram1 .iram1 .*) /* catch stray IRAM_ATTR */
36
- *libhal.a :*.*(.literal .text .literal .* .text .*)
37
36
*esp_mcuboot.*(.literal .text .literal .* .text .*)
38
37
*esp_loader.*(.literal .text .literal .* .text .*)
39
38
*main.*(.literal .text .literal .* .text .*)
39
+
40
+ /* iram_loader section must not be overlapped by application IRAM/DRAM
41
+ * mapping, therefore the following were added based on the dependencies
42
+ * from esp_loader as its from where the application RAM parts will be
43
+ * loaded into memory and ultimately boot. The cross reference table
44
+ * were used to map the reachable dependencies
45
+ */
46
+ *libhal.a :app_cpu_start.*(.literal .text .literal .* .text .*)
47
+ *libhal.a :bootloader_banner.*(.literal .text .literal .* .text .*)
48
+ *libhal.a :bootloader_clock_init.*(.literal .text .literal .* .text .*)
49
+ *libhal.a :bootloader_clock_loader.*(.literal .text .literal .* .text .*)
50
+ *libhal.a :bootloader_common.*(.literal .text .literal .* .text .*)
51
+ *libhal.a :bootloader_common_loader.*(.literal .text .literal .* .text .*)
52
+ *libhal.a :bootloader_console.*(.literal .text .literal .* .text .*)
53
+ *libhal.a :bootloader_console_loader.*(.literal .text .literal .* .text .*)
54
+ *libhal.a :bootloader_efuse.*(.literal .text .literal .* .text .*)
55
+ *libhal.a :bootloader_esp32.*(.literal .text .literal .* .text .*)
56
+ *libhal.a :bootloader_flash.*(.literal .text .literal .* .text .*)
57
+ *libhal.a :bootloader_flash_config_esp32.*(.literal .text .literal .* .text .*)
58
+ *libhal.a :bootloader_init.*(.literal .text .literal .* .text .*)
59
+ *libhal.a :bootloader_mem.*(.literal .text .literal .* .text .*)
60
+ *libhal.a :bootloader_panic.*(.literal .text .literal .* .text .*)
61
+ *libhal.a :bootloader_random.*(.literal .text .literal .* .text .*)
62
+ *libhal.a :bootloader_random_esp32.*(.literal .text .literal .* .text .*)
63
+ *libhal.a :bootloader_sha.*(.literal .text .literal .* .text .*)
64
+ *libhal.a :bootloader_soc.*(.literal .text .literal .* .text .*)
65
+ *libhal.a :bootloader_utility.*(.literal .text .literal .* .text .*)
66
+ *libhal.a :bootloader_wdt.*(.literal .text .literal .* .text .*)
67
+ *libhal.a :cpu.*(.literal .text .literal .* .text .*)
68
+ *libhal.a :efuse_hal.*(.literal .text .literal .* .text .*)
69
+ *libhal.a :esp_efuse_api.*(.literal .text .literal .* .text .*)
70
+ *libhal.a :esp_efuse_api_key.*(.literal .text .literal .* .text .*)
71
+ *libhal.a :esp_efuse_table.*(.literal .text .literal .* .text .*)
72
+ *libhal.a :esp_efuse_utility.*(.literal .text .literal .* .text .*)
73
+ *libhal.a :esp_image_format.*(.literal .text .literal .* .text .*)
74
+ *libhal.a :esp_rom_spiflash.*(.literal .text .literal .* .text .*)
75
+ *libhal.a :esp_rom_sys.*(.literal .text .literal .* .text .*)
76
+ *libhal.a :esp_rom_uart.*(.literal .text .literal .* .text .*)
77
+ *libhal.a :flash_encrypt.*(.literal .text .literal .* .text .*)
78
+ *libhal.a :flash_encryption_secure_features.*(.literal .text .literal .* .text .*)
79
+ *libhal.a :gpio_periph.*(.literal .text .literal .* .text .*)
80
+ *libhal.a :log_noos.*(.literal .text .literal .* .text .*)
81
+ *libhal.a :mmu_hal.*(.literal .text .literal .* .text .*)
82
+ *libhal.a :rtc_clk.*(.literal .text .literal .* .text .*)
83
+ *libhal.a :rtc_clk_init.*(.literal .text .literal .* .text .*)
84
+ *libhal.a :rtc_time.*(.literal .text .literal .* .text .*)
85
+ *libhal.a :secure_boot_signatures_bootloader.*(.literal .text .literal .* .text .*)
86
+ *libhal.a :wdt_hal_iram.*(.literal .text .literal .* .text .*)
87
+ *libgcc.a :*.*(.literal .text .literal .* .text .*)
88
+
40
89
*(.fini .literal )
41
90
*(.fini )
42
91
*(.gnu .version )
0 commit comments