1 /* mbed - LPC11U24 linker script
2 * Based linker script generated by Code Red Technologies Red Suite 4.1
4 GROUP(libgcc.a libc.a libstdc++.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 = 0x8000 /* 32k */
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 + 0x8000;
15 __top_RamLoc8 = 0x10000000 + 0x2000;
16 __top_RamUsb2 = 0x20004000 + 0x800;
23 /* MAIN TEXT SECTION */
29 /* Global Section Table */
31 __section_table_start = .;
32 __data_section_table = .;
33 LONG(LOADADDR(.data));
36 LONG(LOADADDR(.data_RAM2));
37 LONG( ADDR(.data_RAM2)) ;
38 LONG( SIZEOF(.data_RAM2));
39 __data_section_table_end = .;
40 __bss_section_table = .;
43 LONG( ADDR(.bss_RAM2));
44 LONG( SIZEOF(.bss_RAM2));
45 __bss_section_table_end = .;
46 __section_table_end = . ;
47 /* End of Global Section Table */
56 /* C++ constructors etc */
61 __preinit_array_start = .;
62 KEEP (*(.preinit_array))
63 __preinit_array_end = .;
66 __init_array_start = .;
67 KEEP (*(SORT(.init_array.*)))
74 KEEP (*crtbegin.o(.ctors))
75 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
76 KEEP (*(SORT(.ctors.*)))
77 KEEP (*crtend.o(.ctors))
80 KEEP (*crtbegin.o(.dtors))
81 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
82 KEEP (*(SORT(.dtors.*)))
83 KEEP (*crtend.o(.dtors))
88 * for exception handling/unwind - some Newlib functions (in common
89 * with C++ and STDC++) use this.
93 *(.ARM.extab* .gnu.linkonce.armextab.*)
99 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
106 .data_RAM2 : ALIGN(4)
112 } > RamUsb2 AT>MFlash32
114 /* MAIN DATA SECTION */
116 .uninit_RESERVED : ALIGN(4)
118 KEEP(*(.bss.$RESERVED*))
129 } > RamLoc8 AT>MFlash32
139 /* MAIN BSS SECTION */
151 PROVIDE(_pvHeapStart = .);
152 PROVIDE(_vStackTop = __top_RamLoc8 - 0);