1/* Copyright 2019 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 * 18 * apollo3evb.ld - Linker script for applications using startup_gcc.c 19 * 20 *****************************************************************************/ 21ENTRY(Reset_Handler) 22 23MEMORY 24{ 25 FLASH (rx) : ORIGIN = 0x0000C000, LENGTH = 960K 26 SRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 384K 27} 28 29SECTIONS 30{ 31 .text : 32 { 33 . = ALIGN(4); 34 KEEP(*(.isr_vector)) 35 KEEP(*(.patch)) 36 *(.text) 37 *(.text*) 38 39 /* These are the C++ global constructors. Stick them all here and 40 * then walk through the array in main() calling them all. 41 */ 42 _init_array_start = .; 43 KEEP (*(SORT(.init_array*))) 44 _init_array_end = .; 45 46 /* XXX Currently not doing anything for global destructors. */ 47 48 *(.rodata) 49 *(.rodata*) 50 . = ALIGN(4); 51 _etext = .; 52 } > FLASH 53 54 /* User stack section initialized by startup code. */ 55 .stack (NOLOAD): 56 { 57 . = ALIGN(8); 58 *(.stack) 59 *(.stack*) 60 . = ALIGN(8); 61 } > SRAM 62 63 .data : 64 { 65 . = ALIGN(4); 66 _sdata = .; 67 *(.data) 68 *(.data*) 69 . = ALIGN(4); 70 _edata = .; 71 } > SRAM AT>FLASH 72 73 /* used by startup to initialize data */ 74 _init_data = LOADADDR(.data); 75 76 .bss : 77 { 78 . = ALIGN(4); 79 _sbss = .; 80 *(.bss) 81 *(.bss*) 82 *(COMMON) 83 . = ALIGN(4); 84 _ebss = .; 85 } > SRAM 86 /* Add this to satisfy reference to symbol 'end' from libnosys.a(sbrk.o) 87 * to denote the HEAP start. 88 */ 89 end = .; 90 91 .ARM.attributes 0 : { *(.ARM.attributes) } 92} 93 94 95