Skip to content

Commit 7f4ff9b

Browse files
pfalconjepler
authored andcommitted
esp8266/esp8266_common.ld: Put .text of more libs into .irom0.text .
Recent vendor SDKs ship libs with code in .text section, which previously was going into .irom0.text. Adjust the linker script to route these sections back to iROM (follows upstream change).
1 parent cfcbb36 commit 7f4ff9b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

esp8266/esp8266_common.ld

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ SECTIONS
7373
_irom0_text_start = ABSOLUTE(.);
7474
*(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
7575

76+
/* Vendor SDK in v2.1.0-7-gb8fd588 started to build these with
77+
-ffunction-sections -fdata-sections, and require routing to
78+
irom via linker:
79+
https://github.com/espressif/ESP8266_NONOS_SDK/commit/b8fd588a33f0319dc135523b51655e97b483b205
80+
*/
81+
82+
*libcrypto.a:(.literal.* .text.*)
83+
*libnet80211.a:(.literal.* .text.*)
84+
*libwpa.a:(.literal.* .text.*)
85+
*libwpa2.a:(.literal.* .text.*)
86+
7687
/* we put some specific text in this section */
7788

7889
*common-hal/*.o*(.literal* .text*)

0 commit comments

Comments
 (0)