From b47931978feffc7739fab7261b81caed1622fc9d Mon Sep 17 00:00:00 2001 From: Josef Gajdusek Date: Mon, 11 May 2015 15:05:59 +0200 Subject: [PATCH] esp8266: Update the linker script Moved modesp.o to flash and increased size of the irom0_0_seg segment. The new value was taken from NodeMCU linker script. --- esp8266/esp8266.ld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp8266/esp8266.ld b/esp8266/esp8266.ld index 2fbe9296a1..fb19fcf8c2 100644 --- a/esp8266/esp8266.ld +++ b/esp8266/esp8266.ld @@ -5,7 +5,7 @@ MEMORY dport0_0_seg : org = 0x3ff00000, len = 0x10 dram0_0_seg : org = 0x3ffe8000, len = 0x14000 iram1_0_seg : org = 0x40100000, len = 0x8000 - irom0_0_seg : org = 0x40210000, len = 0x40000 + irom0_0_seg : org = 0x40210000, len = 0x5A000 } /* define the top of RAM */ @@ -82,6 +82,7 @@ SECTIONS *modpyb.o(.literal*, .text*) *gccollect.o(.literal* .text*) *gchelper.o(.literal* .text*) + *modesp.o(.literal* .text*) /* we put as much rodata as possible in this section */ /* note that only rodata accessed as a machine word is allowed here */