1 /* mbed - LPC1114 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)
7 /* Define each memory region */
8 MFlash32 (rx) : ORIGIN = 0x0, LENGTH = 0x8000 /* 32k */
9 RamLoc8 (rwx) : ORIGIN = 0x100000C0, LENGTH = 0x0F40 /* 4k */
11 /* Define a symbol for the top of each memory region */
12 __top_MFlash32 = 0x0 + 0x8000;
13 __top_RamLoc8 = 0x10000000 + 0x0F40;
20 /* MAIN TEXT SECTION */
29 /* Global Section Table */
31 __section_table_start = .;
32 __data_section_table = .;
33 LONG(LOADADDR(.data));
36 __data_section_table_end = .;
37 __bss_section_table = .;
40 __bss_section_table_end = .;
41 __section_table_end = . ;
42 /* End of Global Section Table */
51 /* C++ constructors etc */
56 __preinit_array_start = .;
57 KEEP (*(.preinit_array))
58 __preinit_array_end = .;
61 __init_array_start = .;
62 KEEP (*(SORT(.init_array.*)))
69 KEEP (*crtbegin.o(.ctors))
70 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
71 KEEP (*(SORT(.ctors.*)))
72 KEEP (*crtend.o(.ctors))
75 KEEP (*crtbegin.o(.dtors))
76 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
77 KEEP (*(SORT(.dtors.*)))
78 KEEP (*crtend.o(.dtors))
83 * for exception handling/unwind - some Newlib functions (in common
84 * with C++ and STDC++) use this.
88 *(.ARM.extab* .gnu.linkonce.armextab.*)
94 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
102 /* MAIN DATA SECTION */
104 .uninit_RESERVED : ALIGN(4)
106 KEEP(*(.bss.$RESERVED*))
117 } > RamLoc8 AT>MFlash32
121 /* MAIN BSS SECTION */
133 PROVIDE(_pvHeapStart = .);
134 PROVIDE(_vStackTop = __top_RamLoc8 - 0);