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