diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-11-14 09:24:33 +0200 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2018-04-06 20:39:35 -0500 |
| commit | 7f4ff9b3cccbe6f965a36c3c8a30628e08886dc5 (patch) | |
| tree | 1e6eaa5b26141693e064bdf398345924144614c8 | |
| parent | cfcbb3623f35caff897b9d7788a4f56140b6d19e (diff) | |
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).
| -rw-r--r-- | esp8266/esp8266_common.ld | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/esp8266/esp8266_common.ld b/esp8266/esp8266_common.ld index 031123389..aeeecb927 100644 --- a/esp8266/esp8266_common.ld +++ b/esp8266/esp8266_common.ld @@ -73,6 +73,17 @@ SECTIONS _irom0_text_start = ABSOLUTE(.); *(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text) + /* Vendor SDK in v2.1.0-7-gb8fd588 started to build these with + -ffunction-sections -fdata-sections, and require routing to + irom via linker: + https://github.com/espressif/ESP8266_NONOS_SDK/commit/b8fd588a33f0319dc135523b51655e97b483b205 + */ + + *libcrypto.a:(.literal.* .text.*) + *libnet80211.a:(.literal.* .text.*) + *libwpa.a:(.literal.* .text.*) + *libwpa2.a:(.literal.* .text.*) + /* we put some specific text in this section */ *common-hal/*.o*(.literal* .text*) |
