summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-03 00:51:51 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-03 00:51:51 +0300
commitef0c5db2edbbe30a3c291e42f6a2685a3da4d7cd (patch)
tree69f21d6add40662383f6896ef007a09dcbda53a9 /esp8266
parent254a5646c1bec337e988e79fc2eca4827078b33c (diff)
downloadmicropython-ef0c5db2edbbe30a3c291e42f6a2685a3da4d7cd.tar.gz
micropython-ef0c5db2edbbe30a3c291e42f6a2685a3da4d7cd.zip
esp8266: Move .rodata where it belongs with -mforce-l32 help.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/Makefile2
-rw-r--r--esp8266/esp8266.ld3
2 files changed, 4 insertions, 1 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 306935210e..3bb63dd873 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -48,7 +48,7 @@ CFLAGS += -g
COPT = -O0
else
CFLAGS += -fdata-sections -ffunction-sections
-COPT += -Os -DNDEBUG
+COPT += -Os -mforce-l32 -DNDEBUG
LDFLAGS += --gc-sections
endif
diff --git a/esp8266/esp8266.ld b/esp8266/esp8266.ld
index 05d788b8b2..fae56c9575 100644
--- a/esp8266/esp8266.ld
+++ b/esp8266/esp8266.ld
@@ -155,6 +155,9 @@ SECTIONS
*/frozen.o(.rodata.mp_frozen_sizes) /* frozen modules */
*/frozen.o(.rodata.mp_frozen_content) /* frozen modules */
+ /* for -mforce-l32 */
+ build/*.o(.rodata*)
+
_irom0_text_end = ABSOLUTE(.);
} >irom0_0_seg :irom0_0_phdr