1/* 2 * Copyright (c) 2022 Espressif Systems (Shanghai) PTE LTD 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 18MEMORY { 19 iram : org = 0x40800000, len = 0x4000 20 dram : org = 0x40840000, len = 0x18000 21} 22 23ENTRY(stub_main) 24 25SECTIONS { 26 .text : ALIGN(4) { 27 *(.literal) 28 *(.text .text.*) 29 } > iram 30 31 .bss : ALIGN(4) { 32 _bss_start = ABSOLUTE(.); 33 *(.bss) 34 _bss_end = ABSOLUTE(.); 35 } > dram 36 37 .data : ALIGN(4) { 38 *(.data) 39 *(.rodata .rodata.*) 40 } > dram 41} 42 43INCLUDE "rom_32c6.ld" 44