linker scripts and startup codes moved to boot/ and ldscripts/ subdirs in mach-lpc21xx
[LPC2xxx_and_RobotSpejbl.git] / arch / arm / mach-lpc21xx / libs / ldscripts / lpc21xx.ld-mpram
blobeb333eb9a5b2fe3f426345376693a84e5f4e593d
1 /***********************************************************************/\r
2 /*  This file is part of the ARM Compiler package                      */\r
3 /*  Copyright KEIL ELEKTRONIK GmbH 1992-2004                           */\r
4 /***********************************************************************/\r
5 /*                                                                     */\r
6 /*  TARGET.LD:  Linker Script File                                     */\r
7 /*                                                                     */\r
8 /***********************************************************************/\r
9 \r
10 /* Memory Definitions */\r
12 MEMORY\r
13 {\r
14   RAML (rw) : ORIGIN = 0x40000000, LENGTH = 0x00000120\r
15   RAMH (rw) : ORIGIN = 0x40000200, LENGTH = 0x00003e00\r
16   /*RAMH (rw) : ORIGIN = 0x40001100, LENGTH = 0x00000f00*/\r
17 }\r
19 STARTUP(crt0mp.o)\r
21 /* Section Definitions */\r
23 SECTIONS\r
24 {\r
25   .ivec :\r
26   {\r
27     *(.ivec)                   /* remaining code */\r
28   } > RAML\r
30   /* first section is .text which is used for code */\r
31   .text :\r
32   {\r
33     /* *crt0mp.o (.text) */         /* Startup code */\r
34     *(.text)                   /* remaining code */\r
35     *(.rodata)\r
36     *(.rodata*)\r
37     *(.glue_7)\r
38     *(.glue_7t)\r
39   } > RAMH\r
41   . = ALIGN(4);\r
42   _etext = . ;\r
43   PROVIDE (etext = .);\r
45   /* .data section which is used for initialized data */\r
46   .data :\r
47   {\r
48     _data = . ;\r
49     *(.data)\r
50   } > RAMH\r
52   . = ALIGN(4);\r
53   _edata = . ;\r
54    PROVIDE (edata = .);\r
56   /* .bss section which is used for uninitialized data */\r
57   .bss (NOLOAD) :\r
58   {\r
59     __bss_start = . ;\r
60     __bss_start__ = . ;\r
61     *(.bss)\r
62     *(COMMON)\r
63   } > RAMH\r
65   . = ALIGN(4);\r
66   __bss_end__ = . ;\r
67   __bss_end__ = . ;\r
68   _end = .;\r
69   PROVIDE (end = .);\r
71   /* Stabs debugging sections.  */\r
72   .stab          0 : { *(.stab) }\r
73   .stabstr       0 : { *(.stabstr) }\r
74   .stab.excl     0 : { *(.stab.excl) }\r
75   .stab.exclstr  0 : { *(.stab.exclstr) }\r
76   .stab.index    0 : { *(.stab.index) }\r
77   .stab.indexstr 0 : { *(.stab.indexstr) }\r
78   .comment       0 : { *(.comment) }\r
79   /* DWARF debug sections.\r
80      Symbols in the DWARF debugging sections are relative to the beginning\r
81      of the section so we begin them at 0.  */\r
82   /* DWARF 1 */\r
83   .debug          0 : { *(.debug) }\r
84   .line           0 : { *(.line) }\r
85   /* GNU DWARF 1 extensions */\r
86   .debug_srcinfo  0 : { *(.debug_srcinfo) }\r
87   .debug_sfnames  0 : { *(.debug_sfnames) }\r
88   /* DWARF 1.1 and DWARF 2 */\r
89   .debug_aranges  0 : { *(.debug_aranges) }\r
90   .debug_pubnames 0 : { *(.debug_pubnames) }\r
91   /* DWARF 2 */\r
92   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }\r
93   .debug_abbrev   0 : { *(.debug_abbrev) }\r
94   .debug_line     0 : { *(.debug_line) }\r
95   .debug_frame    0 : { *(.debug_frame) }\r
96   .debug_str      0 : { *(.debug_str) }\r
97   .debug_loc      0 : { *(.debug_loc) }\r
98   .debug_macinfo  0 : { *(.debug_macinfo) }\r
99   /* SGI/MIPS DWARF 2 extensions */\r
100   .debug_weaknames 0 : { *(.debug_weaknames) }\r
101   .debug_funcnames 0 : { *(.debug_funcnames) }\r
102   .debug_typenames 0 : { *(.debug_typenames) }\r
103   .debug_varnames  0 : { *(.debug_varnames) }\r