]> 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/AM437x/mem_linker.cmd
Add alpha files for car
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1_0_eng / packages / ti / board / diag / common / AM437x / mem_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 = 0x40300000,   len = 0x0002A000 /* 128KB OCMC SRAM*/       
45     SBL_MEM (RWIX):     org = 0x402F0400,   len = 0x0002FC00 
46     OCMC_RAM (RWIX):    org = 0x4032A000,   len = 0x00016000 /* 128KB OCMC SRAM*/       
47 }
49 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
50 OUTPUT_ARCH(arm)
52 SECTIONS
53 {
54         .startcode :
55         {
56             . = ALIGN(4);
57             *diag_entry.ao      (.text)
58         } >OCMC_RAM
60         .text :
61         {
62             . = ALIGN(4);
63             *(.text*)
64             *(.rodata*)
65         } >OCMC_RAM
67         .data :
68         {
69             . = ALIGN(4);
70             *(.data*)
71         } >OCMC_RAM
73         .bss :
74         {
75             . = ALIGN(4);
76             _bss_start = .;
77             *(.bss*)
78             *(COMMON)
79             _bss_end = .;
80         } >OCMC_RAM
82         .heap :
83         {
84             . = ALIGN(4);
85             __end__ = .;
86             end = __end__;
87             __HeapBase = __end__;
88             *(.heap*)
89             . = . + 0x1000;
90             __HeapLimit = .;
91         } >OCMC_RAM
93         .stack :
94         {
95             . = ALIGN(4);
96             __StackLimit = . ;
97             *(.stack*)
98             . = . + 0x1000;
99             __StackTop = .;
100         } >OCMC_RAM
101         _stack = __StackTop;