1 /* Linker script for mbed LPC4330 */
3 /* Linker script to configure memory regions. */
6 RAM0 (rwx) : ORIGIN = 0x10000114, LENGTH = (128K - 0x114)
7 RAM1 (rwx) : ORIGIN = 0x10080000, LENGTH = 72K
9 RAM_AHB0 (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
10 RAM_AHB1 (rwx) : ORIGIN = 0x20008000, LENGTH = 32K
12 SPIFI (rx) : ORIGIN = 0x14000000, LENGTH = 32M
15 /* Linker script to place sections and symbol values. Should be used together
16 * with other linker script that defines memory regions FLASH and RAM.
17 * It references following symbols, which must be defined in code:
18 * Reset_Handler : Entry of reset handler
20 * It defines following symbols, which code can use without definition:
25 * __preinit_array_start
56 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
63 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
74 *(.ARM.extab* .gnu.linkonce.armextab.*)
80 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
89 Image$$RW_IRAM1$$Base = .;
95 PROVIDE (__preinit_array_start = .);
96 KEEP(*(.preinit_array))
97 PROVIDE (__preinit_array_end = .);
101 PROVIDE (__init_array_start = .);
102 KEEP(*(SORT(.init_array.*)))
104 PROVIDE (__init_array_end = .);
109 PROVIDE (__fini_array_start = .);
110 KEEP(*(SORT(.fini_array.*)))
112 PROVIDE (__fini_array_end = .);
127 Image$$RW_IRAM1$$ZI$$Limit = . ;
139 /* .stack_dummy section doesn't contains any symbols. It is only
140 * used for linker to calculate size of stack sections, and assign
141 * values to stack symbols later */
147 /* Set stack top to end of RAM, and stack limit move down by
148 * size of stack_dummy section */
149 __StackTop = ORIGIN(RAM1) + LENGTH(RAM1);
150 __StackLimit = __StackTop - SIZEOF(.stack_dummy);
151 PROVIDE(__stack = __StackTop);
153 /* Check if data + heap + stack exceeds RAM limit */
154 ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
157 /* Code can explicitly ask for data to be
158 placed in these higher RAM banks where
159 they will be left uninitialized.
163 Image$$RW_IRAM2$$Base = . ;
165 Image$$RW_IRAM2$$ZI$$Limit = .;
170 Image$$RW_IRAM3$$Base = . ;
172 Image$$RW_IRAM3$$ZI$$Limit = .;