1/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. 2 3Licensed under the Apache License, Version 2.0 (the "License"); 4you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License. 14==============================================================================*/ 15 16/* 17 * linker script for use with ECM3531 18 * All sections must map to 128KBytes of SRAM beginning at 0x10000000 19 * 20 */ 21 22 /* 23 * Indicate to the linker the entry point. 24 */ 25ENTRY(ResetISR) 26 27/* 28 * SRAM is at 0x10000000 of length 0x00020000 29 */ 30MEMORY 31{ 32 SRAM (RWX) : ORIGIN = 0x10000000, LENGTH = 0x00020000 33} 34 35SECTIONS 36{ 37 .text : 38 { 39 _text = .; 40 KEEP(*(.vectors)) 41 . = ALIGN(0x4); 42 *(.text*) 43 . = ALIGN(0x4); 44 *(.rodata*) 45 . = ALIGN(0x4); 46 _etext = .; 47 } > SRAM= 0 48 .dummy : 49 { 50 . = ALIGN(0x4); 51 _eftext = .; 52 } > SRAM 53 .datax : 54 { 55 _datax = .; 56 KEEP(*(.mainStack)) 57 . += 16384; 58 _edatax = .; 59 _stack_top = .; 60 . += 4; 61 } > SRAM 62 .data : 63 AT (ADDR(.text) + SIZEOF(.text) ) 64 { 65 _data = .; 66 *(.data*) 67 KEEP(*(.mainHeap)) 68 _edata = .; 69 } > SRAM 70 71 .bss : 72 { 73 _bss = .; 74 *(.bss*) 75 *(COMMON) 76 _ebss = .; 77 } > SRAM 78 .ARM.exidx : 79 { 80 *(.ARM.exidx*) 81 } 82 83} 84 85