]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - psdk_cust/pdk_k2g_1_0_1_2_eng/packages/ti/board/diag/common/AM335x/framework_linker.cmd
Merge pull request #1 in PASDK/pasdk_sr from PASDK-318-input-task-code-repetition...
[processor-sdk/performance-audio-sr.git] / psdk_cust / pdk_k2g_1_0_1_2_eng / packages / ti / board / diag / common / AM335x / 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         DDR0_MEMTEST :          org = 0x80000000,   len = 0x0000A000 /* 36KB mem test */
45     DIAG_MEM (RWIX):    org = 0x402F0400,   len = 0x0001FC00 /* 127KB SRAM Internal(63KB) and OCMC RAM(64KB) */ 
46     SBL_MEM (RWIX):     org = 0x402F0400,   len = 0x0001FC00 /* 127KB SRAM Internal(63KB) and OCMC RAM(64KB) */ 
47     OCMC_RAM (RWIX):    org = 0x40300000,   len = 0x00010000 /* 64KB OCMC SRAM*/        
48 }
50 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
51 OUTPUT_ARCH(arm)
53 SECTIONS
54 {
55         .startcode :
56         {
57             . = ALIGN(4);
58             *framework_entry.ao      (.text) 
59         } >DIAG_MEM
60                 
61         .text :
62         {
63             . = ALIGN(4);
64             *(.text*)
65             *(.rodata*)
66         } >DIAG_MEM
68         .data :
69         {
70             . = ALIGN(4);
71             *(.data*)
72         } >DIAG_MEM
74         .bss :
75         {
76             . = ALIGN(4);
77             _bss_start = .;
78             *(.bss*)
79             *(COMMON)
80             _bss_end = .;
81         } >DIAG_MEM
83         .heap :
84         {
85             . = ALIGN(4);
86             __end__ = .;
87             end = __end__;
88             __HeapBase = __end__;
89             *(.heap*)
90             . = . + 0x1000;
91             __HeapLimit = .;
92         } >DIAG_MEM
94         .stack :
95         {
96             . = ALIGN(4);
97             __StackLimit = . ;
98             *(.stack*)
99             . = . + 0x1000;
100             __StackTop = .;
101         } >DIAG_MEM
102         _stack = __StackTop;