2 * GENERATED FILE - DO NOT EDIT
3 * (C) Code Red Technologies Ltd, 2008-2013
4 * Generated linker script file for LPC4088
5 * Created from generic_c.ld (vLPCXpresso v5.1 (2 [Build 2065] [2013-02-20] ))
6 * By LPCXpresso v5.1.2 [Build 2065] [2013-02-20] on Wed Apr 17 14:50:07 CEST 2013
10 GROUP(libgcc.a libc.a libstdc++.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o)
14 /* Define each memory region */
15 MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */
16 RamLoc64 (rwx) : ORIGIN = 0x100000E8, LENGTH = 0xFF18 /* 64k */
17 RamPeriph32 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000 /* 32k */
20 /* Define a symbol for the top of each memory region */
21 __top_MFlash512 = 0x0 + 0x80000;
22 __top_RamLoc64 = 0x10000000 + 0x10000;
23 __top_RamPeriph32 = 0x20000000 + 0x8000;
30 /* MAIN TEXT SECTION */
36 /* Global Section Table */
38 __section_table_start = .;
39 __data_section_table = .;
40 LONG(LOADADDR(.data));
43 LONG(LOADADDR(.data_RAM2));
44 LONG( ADDR(.data_RAM2)) ;
45 LONG( SIZEOF(.data_RAM2));
46 __data_section_table_end = .;
47 __bss_section_table = .;
50 LONG( ADDR(.bss_RAM2));
51 LONG( SIZEOF(.bss_RAM2));
52 __bss_section_table_end = .;
53 __section_table_end = . ;
54 /* End of Global Section Table */
63 /* C++ constructors etc */
68 __preinit_array_start = .;
69 KEEP (*(.preinit_array))
70 __preinit_array_end = .;
73 __init_array_start = .;
74 KEEP (*(SORT(.init_array.*)))
81 KEEP (*crtbegin.o(.ctors))
82 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
83 KEEP (*(SORT(.ctors.*)))
84 KEEP (*crtend.o(.ctors))
87 KEEP (*crtbegin.o(.dtors))
88 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
89 KEEP (*(SORT(.dtors.*)))
90 KEEP (*crtend.o(.dtors))
95 * for exception handling/unwind - some Newlib functions (in common
96 * with C++ and STDC++) use this.
100 *(.ARM.extab* .gnu.linkonce.armextab.*)
104 .ARM.exidx : ALIGN(4)
106 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
113 /* DATA section for RamPeriph32 */
114 .data_RAM2 : ALIGN(4)
118 *(.data.$RamPeriph32*)
120 } > RamPeriph32 AT>MFlash512
122 /* MAIN DATA SECTION */
125 .uninit_RESERVED : ALIGN(4)
127 KEEP(*(.bss.$RESERVED*))
129 _end_uninit_RESERVED = .;
140 } > RamLoc64 AT>MFlash512
142 /* BSS section for RamPeriph32 */
146 *(.bss.$RamPeriph32*)
150 /* MAIN BSS SECTION */
162 /* NOINIT section for RamPeriph32 */
163 .noinit_RAM2 (NOLOAD) : ALIGN(4)
166 *(.noinit.$RamPeriph32*)
170 /* DEFAULT NOINIT SECTION */
171 .noinit (NOLOAD): ALIGN(4)
179 PROVIDE(_pvHeapStart = .);
180 PROVIDE(_vStackTop = __top_RamLoc64 - 0);