1/* 2 * Copyright (c) 2016 Cesanta Software Limited 3 * All rights reserved 4 * 5 * This program is free software; you can redistribute it and/or modify it under 6 * the terms of the GNU General Public License as published by the Free Software 7 * Foundation; either version 2 of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License along with 14 * this program; if not, write to the Free Software Foundation, Inc., 51 Franklin 15 * Street, Fifth Floor, Boston, MA 02110-1301 USA. 16 */ 17 18/* Note: stub is deliberately loaded close to the very top 19 of available RAM, to reduce change of colliding with anything 20 else... */ 21MEMORY { 22 iram : org = 0x4010D000, len = 0x2100 23 dram : org = 0x3FFE8100, len = 0x13f00 24} 25 26ENTRY(stub_main_8266) 27 28SECTIONS { 29 .text : ALIGN(4) { 30 *(.literal) 31 *(.text .text.*) 32 } > iram 33 34 .bss : ALIGN(4) { 35 _bss_start = ABSOLUTE(.); 36 *(.bss) 37 _bss_end = ABSOLUTE(.); 38 } > dram 39 40 .data : ALIGN(4) { 41 *(.data) 42 *(.rodata .rodata.*) 43 } > dram 44} 45 46INCLUDE "rom_8266.ld" 47 48PROVIDE(SPIFlashModeConfig = 0x40004568); 49PROVIDE(SPIParamCfg = 0x40004c2c); 50