]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pdk_k2g_1_0_1_0_eng/packages/ti/board/diag/common/AM572x/framework_linker.cmd
Change pdk_k2g_1_0_1 directory name in preparation for updating RSTC plugin
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1_0_eng / packages / ti / board / diag / common / AM572x / framework_linker.cmd
1 /**
2  *  ============================================================================
3  *  @n   (C) Copyright 2015, Texas Instruments, Inc.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions
7  *  are met:
8  *
9  *    Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  *    Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the
15  *    distribution.
16  *
17  *    Neither the name of Texas Instruments Incorporated nor the names of
18  *    its contributors may be used to endorse or promote products derived
19  *    from this software without specific prior written permission.
20  *
21  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *
33  */
35 /*
36 ** The stack is kept at end of the image, and its size is 128 MB.
37 ** The heap section is placed above the stack to support I/O
38 ** operations using semi-hosting. The size of the section is 2KB.
39 */
41 MEMORY
42 {
43     DDR0 :              org = 0x80000000,   len = 0x40000000
44     DIAG_MEM (RWIX):    org = 0x40330000,   len = 0x0004FFFF 
45     OCMC_RAM1 (RWIX):   org = 0x40300000,   len = 0x00030000
46 }
48 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
49 OUTPUT_ARCH(arm)
51 SECTIONS
52 {
53         .startcode :
54         {
55             . = ALIGN(4);
56             *init.o      (.text)
57         } >DIAG_MEM
59         .text :
60         {
61             . = ALIGN(4);
62             *(.text*)
63             *(.rodata*)
64         } >DIAG_MEM
66         .data :
67         {
68             . = ALIGN(4);
69             *(.data*)
70         } >DIAG_MEM
72         .bss :
73         {
74             . = ALIGN(4);
75             _bss_start = .;
76             *(.bss*)
77             *(COMMON)
78             _bss_end = .;
79         } >DIAG_MEM
81         .heap :
82         {
83             . = ALIGN(4);
84             __end__ = .;
85             end = __end__;
86             __HeapBase = __end__;
87             *(.heap*)
88             . = . + 0x1000;
89             __HeapLimit = .;
90         } >DIAG_MEM
92         .stack :
93         {
94             . = ALIGN(4);
95             __StackLimit = . ;
96             *(.stack*)
97             . = . + 0x10000;
98             __StackTop = .;
99         } >DIAG_MEM
100         _stack = __StackTop;
102         BOARD_IO_DELAY_CODE :
103         {
104             . = ALIGN(4);
105             *(BOARD_IO_DELAY_CODE*)
106         } > OCMC_RAM1
108         BOARD_IO_DELAY_DATA :
109         {
110             . = ALIGN(4);
111             *(BOARD_IO_DELAY_DATA*)
112         } > OCMC_RAM1