1 /* mbed - LPC11U35 linker script
2 * Based linker script generated by Code Red Technologies Red Suite 4.1
4 GROUP(libgcc.a libc_s.a libstdc++_s.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o)
8 /* Define each memory region */
9 MFlash32 (rx) : ORIGIN = 0x0, LENGTH = 0x10000 /* 64k */
10 RamLoc8 (rwx) : ORIGIN = 0x100000C0, LENGTH = 0x1F40 /* 8k */
11 RamUsb2 (rwx) : ORIGIN = 0x20004000, LENGTH = 0x800 /* 2k */
13 /* Define a symbol for the top of each memory region */
14 __top_MFlash32 = 0x0 + 0x10000;
15 __top_RamLoc8 = 0x10000000 + 0x1F40;
16 __top_RamUsb2 = 0x20004000 + 0x800;
23 /* MAIN TEXT SECTION */
31 /* Global Section Table */
33 __section_table_start = .;
34 __data_section_table = .;
35 LONG(LOADADDR(.data));
38 LONG(LOADADDR(.data_RAM2));
39 LONG( ADDR(.data_RAM2)) ;
40 LONG( SIZEOF(.data_RAM2));
41 __data_section_table_end = .;
42 __bss_section_table = .;
45 LONG( ADDR(.bss_RAM2));
46 LONG( SIZEOF(.bss_RAM2));
47 __bss_section_table_end = .;
48 __section_table_end = . ;
49 /* End of Global Section Table */
58 /* C++ constructors etc */
63 __preinit_array_start = .;
64 KEEP (*(.preinit_array))
65 __preinit_array_end = .;
68 __init_array_start = .;
69 KEEP (*(SORT(.init_array.*)))
76 KEEP (*crtbegin.o(.ctors))
77 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
78 KEEP (*(SORT(.ctors.*)))
79 KEEP (*crtend.o(.ctors))
82 KEEP (*crtbegin.o(.dtors))
83 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
84 KEEP (*(SORT(.dtors.*)))
85 KEEP (*crtend.o(.dtors))
90 * for exception handling/unwind - some Newlib functions (in common
91 * with C++ and STDC++) use this.
95 *(.ARM.extab* .gnu.linkonce.armextab.*)
101 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
108 .data_RAM2 : ALIGN(4)
114 } > RamUsb2 AT>MFlash32
116 /* MAIN DATA SECTION */
118 .uninit_RESERVED : ALIGN(4)
120 KEEP(*(.bss.$RESERVED*))
131 } > RamLoc8 AT>MFlash32
141 /* MAIN BSS SECTION */
153 PROVIDE(_pvHeapStart = .);
154 PROVIDE(_vStackTop = __top_RamLoc8 - 0);