]> begriffs open source - cmsis-freertos/blob - Demo/ARM7_LPC2106_GCC/lpc2106-ram.ld
This is a FreeRTOS header, not RTX.
[cmsis-freertos] / Demo / ARM7_LPC2106_GCC / lpc2106-ram.ld
1 MEMORY 
2 {
3         flash   : ORIGIN = 0, LENGTH = 120K
4         ram             : ORIGIN = 0x40000000, LENGTH = 64K
5 }
6
7 __stack_end__ = 0x40000000 + 64K - 4;
8
9 SECTIONS 
10 {
11         . = 0;
12         startup : { *(.startup)} >ram
13
14         prog : 
15         {
16                 *(.text)
17                 *(.rodata)
18                 *(.rodata*)
19                 *(.glue_7)
20                 *(.glue_7t)
21         } >ram
22
23         __end_of_text__ = .;
24
25         .data : 
26         {
27                 __data_beg__ = .;
28                 __data_beg_src__ = __end_of_text__;
29                 *(.data)
30                 __data_end__ = .;
31         } >ram
32
33         .bss : 
34         {
35                 __bss_beg__ = .;
36                 *(.bss)
37         } >ram
38
39         . = ALIGN(4);
40         .eh_frame :
41         {
42                  KEEP (*(.eh_frame))
43         } > ram
44         
45         /* Align here to ensure that the .bss section occupies space up to
46         _end.  Align after .bss to ensure correct alignment even if the
47         .bss section disappears because there are no input sections.  */
48         . = ALIGN(32 / 8);
49 }
50         . = ALIGN(32 / 8);
51         _end = .;
52         _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
53         PROVIDE (end = .);
54
55