1/****************************************************************************/
2/*                                                                          */
3/*                               M6678.cmd                                  */
4/*                         Copyright (c): NUDT                              */
5/*                                                                          */
6/*                                                                          */
7/*    Description: This file is a sample linker command file that can be    */
8/*                 used for linking programs built with the C compiler and  */
9/*                 running the resulting .out file on an M6678              */
10/*                 device.  Use it as a guideline.  You will want to        */
11/*                 change the memory layout to match your specific C6xxx    */
12/*                 target system.  You may want to change the allocation    */
13/*                 scheme according to the size of your program.            */
14/*                                                                          */
15/*                                                                          */
16/****************************************************************************/
17
18-heap  0x800
19-stack 0x1000
20
21MEMORY
22{
23	VECTORS:		o = 0x00800000  l = 0x00000200
24	LL2_CODE:		o = 0x00800200  l = 0x0001FE00
25	LL2_RW_DATA: 	o = 0x00820000  l = 0x00020000   /*set memory protection attribitue as read/write*/
26}
27
28SECTIONS
29{
30	.vecs       	>    VECTORS
31
32	.text           >    LL2_CODE
33	.cinit          >    LL2_CODE
34	.const          >    LL2_CODE
35	.switch         >    LL2_CODE
36	.stack          >    LL2_RW_DATA
37	GROUP
38	{
39		.neardata
40		.rodata
41		.bss
42	} 		>    LL2_RW_DATA
43	.far            >    LL2_RW_DATA
44	.fardata        >    LL2_RW_DATA
45	.cio            >    LL2_RW_DATA
46	.sysmem         >    LL2_RW_DATA
47}
48