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