]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_LPC1768_GCC_RedSuite/src/rtosdemo_rdb1768_Debug.ld
New MicroBlaze port: Added a FreeRTOS exception handler, and installed it in each...
[freertos] / Demo / CORTEX_LPC1768_GCC_RedSuite / src / rtosdemo_rdb1768_Debug.ld
1 /*\r
2  * GENERATED FILE - DO NOT EDIT\r
3  * (C) Code Red Technologies Ltd, 2008-9    \r
4  * Generated C linker script file for LPC1768 \r
5  * (created from nxp_lpc13_c.ld (v2.0.11 (200907061347)) on Thu Jul 09 12:44:31 BST 2009)\r
6 */\r
7 \r
8 GROUP(libgcc.a libc.a)
9 \r
10 MEMORY\r
11 {\r
12      FLASH (rx) : ORIGIN = 0x0 LENGTH = 0x80000\r
13      SRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 0x8000\r
14          AHBRAM0   : ORIGIN = 0x2007c000, LENGTH = 0x4000\r
15          AHBRAM1   : ORIGIN = 0x20080000, LENGTH = 0x4000\r
16 }\r
17 \r
18 _vRamTop = 0x10000000 + 0x8000;\r
19 \r
20 ENTRY(ResetISR)\r
21 \r
22 SECTIONS\r
23 {\r
24         .text :\r
25         {\r
26                 KEEP(*(.isr_vector))\r
27                 *(.text*)\r
28                 *(.rodata*)\r
29 \r
30         } > FLASH\r
31 \r
32 \r
33         /* for exception handling/unwind - some Newlib functions (in common with C++ and STDC++) use this. */\r
34         \r
35         .ARM.extab : \r
36         {\r
37                 *(.ARM.extab* .gnu.linkonce.armextab.*)\r
38         } > FLASH\r
39 \r
40         __exidx_start = .;\r
41         .ARM.exidx :\r
42         {\r
43                 *(.ARM.exidx* .gnu.linkonce.armexidx.*)\r
44         } > FLASH\r
45         __exidx_end = .;\r
46 \r
47         _etext = .;\r
48                 \r
49         .data : AT (__exidx_end)\r
50         {\r
51                 _data = .;\r
52                 *(vtable)\r
53                 *(.data*)\r
54                 _edata = .;\r
55         } > SRAM\r
56 \r
57         /* zero initialized data */\r
58         .bss :\r
59         {\r
60                 _bss = .;\r
61                 *(.bss*)\r
62                 *(COMMON)\r
63                 _ebss = .;\r
64         } > SRAM\r
65         \r
66         /* Where we put the heap with cr_clib */\r
67         .cr_heap :\r
68         {\r
69                 end = .;\r
70                 _pvHeapStart = .;\r
71         } > SRAM\r
72 \r
73 /*\r
74         Note: (ref: M0000066)\r
75         Moving the stack down by 16 is to work around a GDB bug.\r
76         This space can be reclaimed for Production Builds.\r
77 */      \r
78         _vStackTop = _vRamTop - 16;\r
79         \r
80         .ETHRAM :\r
81         {\r
82         } > AHBRAM0\r
83         \r
84         .USBRAM :\r
85         {\r
86         } > AHBRAM1\r
87 }\r