changing circuitry to disable RTC, update initialization to match
[fw/openalt] / lpc2148-rom.ld
1 MEMORY 
2 {
3         flash   : ORIGIN = 0, LENGTH = 500K
4         ram             : ORIGIN = 0x40000000, LENGTH = 32K - 32
5 }
6
7 __stack_end__ = 0x40000000 + 32K - 36;
8
9 SECTIONS 
10 {
11         . = 0;
12         startup : 
13   { 
14     __start_of_startup__ = .;
15     *(.startup)
16     __end_of_startup__ = .;
17   } >flash
18
19         prog : 
20         {
21     __start_of_text__ = .;
22     __start_of_prog__ = .;
23                 *(.text)
24     __end_of_prog__ = .;
25     __start_of_rodata__ = .;
26                 *(.rodata)
27                 *(.rodata*)
28     __end_of_rodata__ = .;
29     __start_of_glue7__ = .;
30                 *(.glue_7)
31                 *(.glue_7t)
32     __end_of_glue7__ = .;
33         } >flash
34
35         __end_of_text__ = .;
36
37   .protected :
38   {
39     __protected_beg__ = .;
40     *(.protected)
41     __protected_end__ = .;
42   } >ram
43   
44         .data : 
45         {
46                 __data_beg__ = .;
47                 __data_beg_src__ = __end_of_text__;
48                 *(.data)
49                 __data_end__ = .;
50         } >ram AT>flash
51
52         .bss : 
53         {
54                 __bss_beg__ = .;
55                 *(.bss)
56         } >ram
57
58         /* Align here to ensure that the .bss section occupies space up to
59         _end.  Align after .bss to ensure correct alignment even if the
60         .bss section disappears because there are no input sections.  */
61         . = ALIGN(32 / 8);
62 }
63         . = ALIGN(32 / 8);
64         _end = .;
65         _bss_end__ = .; 
66   __bss_end__ = .; 
67   __heap_beg__ = .;
68   __heap_end__ = .;
69   __end__ = . ;
70         PROVIDE (end = .);