Hey everyone,
Im trying to create a custom linker script. It works If I set board_build.ldscript
to any of the provided ones (eg. eagle.flash.4m1m.ld
), however once I copy its content and put it in custom file, the esp8266 application crashes and reboots. My guess is that INCLUDE "local.eagle.app.v6.common.ld"
is not correctly resolved. Once I append its content it works just fine.
For example:
Works:
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
irom0_0_seg : org = 0x40201010, len = 0xfeff0
}
PROVIDE ( _FS_start = 0x40500000 );
PROVIDE ( _FS_end = 0x405FA000 );
PROVIDE ( _FS_page = 0x100 );
PROVIDE ( _FS_block = 0x2000 );
PROVIDE ( _EEPROM_start = 0x405fb000 );
MEMORY
{
iram1_0_seg : org = 0x40100000, len = 0x8000
}
PHDRS
{
dport0_0_phdr PT_LOAD;
dram0_0_phdr PT_LOAD;
dram0_0_bss_phdr PT_LOAD;
iram1_0_phdr PT_LOAD;
[...]
Does not work:
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
irom0_0_seg : org = 0x40201010, len = 0xfeff0
}
PROVIDE ( _FS_start = 0x40500000 );
PROVIDE ( _FS_end = 0x405FA000 );
PROVIDE ( _FS_page = 0x100 );
PROVIDE ( _FS_block = 0x2000 );
PROVIDE ( _EEPROM_start = 0x405fb000 );
INCLUDE "local.eagle.app.v6.common.ld"
How can I create a custom script including the default common one?