mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 232:1e593fe58241
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 232:1e593fe58241 | 1 | /*Based on following file*/ |
mbed_official | 232:1e593fe58241 | 2 | /* |
mbed_official | 232:1e593fe58241 | 3 | * GENERATED FILE - DO NOT EDIT |
mbed_official | 232:1e593fe58241 | 4 | * (c) Code Red Technologies Ltd, 2008-13 |
mbed_official | 232:1e593fe58241 | 5 | * (c) NXP Semiconductors 2013-2014 |
mbed_official | 232:1e593fe58241 | 6 | * Generated linker script file for LPC11U68 |
mbed_official | 232:1e593fe58241 | 7 | * Created from LibIncTemplate.ld (LPCXpresso v7.2 (0 [Build 153] [2014-05-19] )) |
mbed_official | 232:1e593fe58241 | 8 | * By LPCXpresso v7.2.0 [Build 153] [2014-05-19] on Sat Jun 14 15:26:54 JST 2014 |
mbed_official | 232:1e593fe58241 | 9 | */ |
mbed_official | 232:1e593fe58241 | 10 | |
mbed_official | 232:1e593fe58241 | 11 | MEMORY |
mbed_official | 232:1e593fe58241 | 12 | { |
mbed_official | 232:1e593fe58241 | 13 | /* Define each memory region */ |
mbed_official | 232:1e593fe58241 | 14 | MFlash256 (rx) : ORIGIN = 0x0, LENGTH = 0x40000 /* 256K bytes */ |
mbed_official | 232:1e593fe58241 | 15 | Ram0_32 (rwx) : ORIGIN = 0x10000000+0x100, LENGTH = 0x8000-0x100 /* 32K bytes */ |
mbed_official | 232:1e593fe58241 | 16 | Ram1_2 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x800 /* 2K bytes */ |
mbed_official | 232:1e593fe58241 | 17 | Ram2USB_2 (rwx) : ORIGIN = 0x20004000, LENGTH = 0x800 /* 2K bytes */ |
mbed_official | 232:1e593fe58241 | 18 | |
mbed_official | 232:1e593fe58241 | 19 | |
mbed_official | 232:1e593fe58241 | 20 | } |
mbed_official | 232:1e593fe58241 | 21 | /* Define a symbol for the top of each memory region */ |
mbed_official | 232:1e593fe58241 | 22 | __top_MFlash256 = 0x0 + 0x40000; |
mbed_official | 232:1e593fe58241 | 23 | __top_Ram0_32 = 0x10000000 + 0x8000; |
mbed_official | 232:1e593fe58241 | 24 | __top_Ram1_2 = 0x20000000 + 0x800; |
mbed_official | 232:1e593fe58241 | 25 | __top_Ram2USB_2 = 0x20004000 + 0x800; |
mbed_official | 232:1e593fe58241 | 26 | |
mbed_official | 232:1e593fe58241 | 27 | ENTRY(ResetISR) |
mbed_official | 232:1e593fe58241 | 28 | |
mbed_official | 232:1e593fe58241 | 29 | SECTIONS |
mbed_official | 232:1e593fe58241 | 30 | { |
mbed_official | 232:1e593fe58241 | 31 | |
mbed_official | 232:1e593fe58241 | 32 | /* MAIN TEXT SECTION */ |
mbed_official | 232:1e593fe58241 | 33 | .text : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 34 | { |
mbed_official | 232:1e593fe58241 | 35 | FILL(0xff) |
mbed_official | 232:1e593fe58241 | 36 | __vectors_start__ = ABSOLUTE(.) ; |
mbed_official | 232:1e593fe58241 | 37 | KEEP(*(.isr_vector)) |
mbed_official | 232:1e593fe58241 | 38 | |
mbed_official | 232:1e593fe58241 | 39 | /* Global Section Table */ |
mbed_official | 232:1e593fe58241 | 40 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 41 | __section_table_start = .; |
mbed_official | 232:1e593fe58241 | 42 | __data_section_table = .; |
mbed_official | 232:1e593fe58241 | 43 | LONG(LOADADDR(.data)); |
mbed_official | 232:1e593fe58241 | 44 | LONG( ADDR(.data)); |
mbed_official | 232:1e593fe58241 | 45 | LONG( SIZEOF(.data)); |
mbed_official | 232:1e593fe58241 | 46 | LONG(LOADADDR(.data_RAM2)); |
mbed_official | 232:1e593fe58241 | 47 | LONG( ADDR(.data_RAM2)); |
mbed_official | 232:1e593fe58241 | 48 | LONG( SIZEOF(.data_RAM2)); |
mbed_official | 232:1e593fe58241 | 49 | LONG(LOADADDR(.data_RAM3)); |
mbed_official | 232:1e593fe58241 | 50 | LONG( ADDR(.data_RAM3)); |
mbed_official | 232:1e593fe58241 | 51 | LONG( SIZEOF(.data_RAM3)); |
mbed_official | 232:1e593fe58241 | 52 | __data_section_table_end = .; |
mbed_official | 232:1e593fe58241 | 53 | __bss_section_table = .; |
mbed_official | 232:1e593fe58241 | 54 | LONG( ADDR(.bss)); |
mbed_official | 232:1e593fe58241 | 55 | LONG( SIZEOF(.bss)); |
mbed_official | 232:1e593fe58241 | 56 | LONG( ADDR(.bss_RAM2)); |
mbed_official | 232:1e593fe58241 | 57 | LONG( SIZEOF(.bss_RAM2)); |
mbed_official | 232:1e593fe58241 | 58 | LONG( ADDR(.bss_RAM3)); |
mbed_official | 232:1e593fe58241 | 59 | LONG( SIZEOF(.bss_RAM3)); |
mbed_official | 232:1e593fe58241 | 60 | __bss_section_table_end = .; |
mbed_official | 232:1e593fe58241 | 61 | __section_table_end = . ; |
mbed_official | 232:1e593fe58241 | 62 | /* End of Global Section Table */ |
mbed_official | 232:1e593fe58241 | 63 | |
mbed_official | 232:1e593fe58241 | 64 | |
mbed_official | 232:1e593fe58241 | 65 | *(.after_vectors*) |
mbed_official | 232:1e593fe58241 | 66 | |
mbed_official | 232:1e593fe58241 | 67 | *(.text*) |
mbed_official | 232:1e593fe58241 | 68 | *(.rodata .rodata.*) |
mbed_official | 232:1e593fe58241 | 69 | . = ALIGN(4); |
mbed_official | 232:1e593fe58241 | 70 | |
mbed_official | 232:1e593fe58241 | 71 | /* C++ constructors etc */ |
mbed_official | 232:1e593fe58241 | 72 | . = ALIGN(4); |
mbed_official | 232:1e593fe58241 | 73 | KEEP(*(.init)) |
mbed_official | 232:1e593fe58241 | 74 | |
mbed_official | 232:1e593fe58241 | 75 | . = ALIGN(4); |
mbed_official | 232:1e593fe58241 | 76 | __preinit_array_start = .; |
mbed_official | 232:1e593fe58241 | 77 | KEEP (*(.preinit_array)) |
mbed_official | 232:1e593fe58241 | 78 | __preinit_array_end = .; |
mbed_official | 232:1e593fe58241 | 79 | |
mbed_official | 232:1e593fe58241 | 80 | . = ALIGN(4); |
mbed_official | 232:1e593fe58241 | 81 | __init_array_start = .; |
mbed_official | 232:1e593fe58241 | 82 | KEEP (*(SORT(.init_array.*))) |
mbed_official | 232:1e593fe58241 | 83 | KEEP (*(.init_array)) |
mbed_official | 232:1e593fe58241 | 84 | __init_array_end = .; |
mbed_official | 232:1e593fe58241 | 85 | |
mbed_official | 232:1e593fe58241 | 86 | KEEP(*(.fini)); |
mbed_official | 232:1e593fe58241 | 87 | |
mbed_official | 232:1e593fe58241 | 88 | . = ALIGN(0x4); |
mbed_official | 232:1e593fe58241 | 89 | KEEP (*crtbegin.o(.ctors)) |
mbed_official | 232:1e593fe58241 | 90 | KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) |
mbed_official | 232:1e593fe58241 | 91 | KEEP (*(SORT(.ctors.*))) |
mbed_official | 232:1e593fe58241 | 92 | KEEP (*crtend.o(.ctors)) |
mbed_official | 232:1e593fe58241 | 93 | |
mbed_official | 232:1e593fe58241 | 94 | . = ALIGN(0x4); |
mbed_official | 232:1e593fe58241 | 95 | KEEP (*crtbegin.o(.dtors)) |
mbed_official | 232:1e593fe58241 | 96 | KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) |
mbed_official | 232:1e593fe58241 | 97 | KEEP (*(SORT(.dtors.*))) |
mbed_official | 232:1e593fe58241 | 98 | KEEP (*crtend.o(.dtors)) |
mbed_official | 232:1e593fe58241 | 99 | } > MFlash256 |
mbed_official | 232:1e593fe58241 | 100 | |
mbed_official | 232:1e593fe58241 | 101 | /* |
mbed_official | 232:1e593fe58241 | 102 | * for exception handling/unwind - some Newlib functions (in common |
mbed_official | 232:1e593fe58241 | 103 | * with C++ and STDC++) use this. |
mbed_official | 232:1e593fe58241 | 104 | */ |
mbed_official | 232:1e593fe58241 | 105 | .ARM.extab : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 106 | { |
mbed_official | 232:1e593fe58241 | 107 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
mbed_official | 232:1e593fe58241 | 108 | } > MFlash256 |
mbed_official | 232:1e593fe58241 | 109 | __exidx_start = .; |
mbed_official | 232:1e593fe58241 | 110 | |
mbed_official | 232:1e593fe58241 | 111 | .ARM.exidx : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 112 | { |
mbed_official | 232:1e593fe58241 | 113 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
mbed_official | 232:1e593fe58241 | 114 | } > MFlash256 |
mbed_official | 232:1e593fe58241 | 115 | __exidx_end = .; |
mbed_official | 232:1e593fe58241 | 116 | |
mbed_official | 232:1e593fe58241 | 117 | _etext = .; |
mbed_official | 232:1e593fe58241 | 118 | |
mbed_official | 232:1e593fe58241 | 119 | /* possible MTB section for Ram1_2 */ |
mbed_official | 232:1e593fe58241 | 120 | .mtb_buffer_RAM2 (NOLOAD) : |
mbed_official | 232:1e593fe58241 | 121 | { |
mbed_official | 232:1e593fe58241 | 122 | KEEP(*(.mtb.$RAM2*)) |
mbed_official | 232:1e593fe58241 | 123 | KEEP(*(.mtb.$RAM1_2*)) |
mbed_official | 232:1e593fe58241 | 124 | } > Ram1_2 |
mbed_official | 232:1e593fe58241 | 125 | |
mbed_official | 232:1e593fe58241 | 126 | /* DATA section for Ram1_2 */ |
mbed_official | 232:1e593fe58241 | 127 | .data_RAM2 : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 128 | { |
mbed_official | 232:1e593fe58241 | 129 | FILL(0xff) |
mbed_official | 232:1e593fe58241 | 130 | *(.ramfunc.$RAM2) |
mbed_official | 232:1e593fe58241 | 131 | *(.ramfunc.$Ram1_2) |
mbed_official | 232:1e593fe58241 | 132 | *(.data.$RAM2*) |
mbed_official | 232:1e593fe58241 | 133 | *(.data.$Ram1_2*) |
mbed_official | 232:1e593fe58241 | 134 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 135 | } > Ram1_2 AT>MFlash256 |
mbed_official | 232:1e593fe58241 | 136 | /* possible MTB section for Ram2USB_2 */ |
mbed_official | 232:1e593fe58241 | 137 | .mtb_buffer_RAM3 (NOLOAD) : |
mbed_official | 232:1e593fe58241 | 138 | { |
mbed_official | 232:1e593fe58241 | 139 | KEEP(*(.mtb.$RAM3*)) |
mbed_official | 232:1e593fe58241 | 140 | KEEP(*(.mtb.$RAM2USB_2*)) |
mbed_official | 232:1e593fe58241 | 141 | } > Ram2USB_2 |
mbed_official | 232:1e593fe58241 | 142 | |
mbed_official | 232:1e593fe58241 | 143 | /* DATA section for Ram2USB_2 */ |
mbed_official | 232:1e593fe58241 | 144 | .data_RAM3 : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 145 | { |
mbed_official | 232:1e593fe58241 | 146 | FILL(0xff) |
mbed_official | 232:1e593fe58241 | 147 | *(.ramfunc.$RAM3) |
mbed_official | 232:1e593fe58241 | 148 | *(.ramfunc.$Ram2USB_2) |
mbed_official | 232:1e593fe58241 | 149 | *(.data.$RAM3*) |
mbed_official | 232:1e593fe58241 | 150 | *(.data.$Ram2USB_2*) |
mbed_official | 232:1e593fe58241 | 151 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 152 | } > Ram2USB_2 AT>MFlash256 |
mbed_official | 232:1e593fe58241 | 153 | |
mbed_official | 232:1e593fe58241 | 154 | /* MAIN DATA SECTION */ |
mbed_official | 232:1e593fe58241 | 155 | |
mbed_official | 232:1e593fe58241 | 156 | /* Default MTB section */ |
mbed_official | 232:1e593fe58241 | 157 | .mtb_buffer_default (NOLOAD) : |
mbed_official | 232:1e593fe58241 | 158 | { |
mbed_official | 232:1e593fe58241 | 159 | KEEP(*(.mtb*)) |
mbed_official | 232:1e593fe58241 | 160 | } > Ram0_32 |
mbed_official | 232:1e593fe58241 | 161 | |
mbed_official | 232:1e593fe58241 | 162 | .uninit_RESERVED : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 163 | { |
mbed_official | 232:1e593fe58241 | 164 | KEEP(*(.bss.$RESERVED*)) |
mbed_official | 232:1e593fe58241 | 165 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 166 | _end_uninit_RESERVED = .; |
mbed_official | 232:1e593fe58241 | 167 | } > Ram0_32 |
mbed_official | 232:1e593fe58241 | 168 | |
mbed_official | 232:1e593fe58241 | 169 | |
mbed_official | 232:1e593fe58241 | 170 | /* Main DATA section (Ram0_32) */ |
mbed_official | 232:1e593fe58241 | 171 | .data : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 172 | { |
mbed_official | 232:1e593fe58241 | 173 | FILL(0xff) |
mbed_official | 232:1e593fe58241 | 174 | _data = . ; |
mbed_official | 232:1e593fe58241 | 175 | *(vtable) |
mbed_official | 232:1e593fe58241 | 176 | *(.ramfunc*) |
mbed_official | 232:1e593fe58241 | 177 | *(.data*) |
mbed_official | 232:1e593fe58241 | 178 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 179 | _edata = . ; |
mbed_official | 232:1e593fe58241 | 180 | } > Ram0_32 AT>MFlash256 |
mbed_official | 232:1e593fe58241 | 181 | |
mbed_official | 232:1e593fe58241 | 182 | /* BSS section for Ram1_2 */ |
mbed_official | 232:1e593fe58241 | 183 | .bss_RAM2 : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 184 | { |
mbed_official | 232:1e593fe58241 | 185 | *(.bss.$RAM2*) |
mbed_official | 232:1e593fe58241 | 186 | *(.bss.$Ram1_2*) |
mbed_official | 232:1e593fe58241 | 187 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 188 | } > Ram1_2 |
mbed_official | 232:1e593fe58241 | 189 | /* BSS section for Ram2USB_2 */ |
mbed_official | 232:1e593fe58241 | 190 | .bss_RAM3 : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 191 | { |
mbed_official | 232:1e593fe58241 | 192 | *(.bss.$RAM3*) |
mbed_official | 232:1e593fe58241 | 193 | *(.bss.$Ram2USB_2*) |
mbed_official | 232:1e593fe58241 | 194 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 195 | } > Ram2USB_2 |
mbed_official | 232:1e593fe58241 | 196 | |
mbed_official | 232:1e593fe58241 | 197 | /* MAIN BSS SECTION */ |
mbed_official | 232:1e593fe58241 | 198 | .bss : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 199 | { |
mbed_official | 232:1e593fe58241 | 200 | _bss = .; |
mbed_official | 232:1e593fe58241 | 201 | *(.bss*) |
mbed_official | 232:1e593fe58241 | 202 | *(COMMON) |
mbed_official | 232:1e593fe58241 | 203 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 204 | _ebss = .; |
mbed_official | 232:1e593fe58241 | 205 | PROVIDE(end = .); |
mbed_official | 232:1e593fe58241 | 206 | __end__ = .; |
mbed_official | 232:1e593fe58241 | 207 | } > Ram0_32 |
mbed_official | 232:1e593fe58241 | 208 | |
mbed_official | 232:1e593fe58241 | 209 | /* NOINIT section for Ram1_2 */ |
mbed_official | 232:1e593fe58241 | 210 | .noinit_RAM2 (NOLOAD) : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 211 | { |
mbed_official | 232:1e593fe58241 | 212 | *(.noinit.$RAM2*) |
mbed_official | 232:1e593fe58241 | 213 | *(.noinit.$Ram1_2*) |
mbed_official | 232:1e593fe58241 | 214 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 215 | } > Ram1_2 |
mbed_official | 232:1e593fe58241 | 216 | /* NOINIT section for Ram2USB_2 */ |
mbed_official | 232:1e593fe58241 | 217 | .noinit_RAM3 (NOLOAD) : ALIGN(4) |
mbed_official | 232:1e593fe58241 | 218 | { |
mbed_official | 232:1e593fe58241 | 219 | *(.noinit.$RAM3*) |
mbed_official | 232:1e593fe58241 | 220 | *(.noinit.$Ram2USB_2*) |
mbed_official | 232:1e593fe58241 | 221 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 222 | } > Ram2USB_2 |
mbed_official | 232:1e593fe58241 | 223 | |
mbed_official | 232:1e593fe58241 | 224 | /* DEFAULT NOINIT SECTION */ |
mbed_official | 232:1e593fe58241 | 225 | .noinit (NOLOAD): ALIGN(4) |
mbed_official | 232:1e593fe58241 | 226 | { |
mbed_official | 232:1e593fe58241 | 227 | _noinit = .; |
mbed_official | 232:1e593fe58241 | 228 | *(.noinit*) |
mbed_official | 232:1e593fe58241 | 229 | . = ALIGN(4) ; |
mbed_official | 232:1e593fe58241 | 230 | _end_noinit = .; |
mbed_official | 232:1e593fe58241 | 231 | } > Ram0_32 |
mbed_official | 232:1e593fe58241 | 232 | |
mbed_official | 232:1e593fe58241 | 233 | PROVIDE(_pvHeapStart = .); |
mbed_official | 232:1e593fe58241 | 234 | PROVIDE(_vStackTop = __top_Ram0_32 - 0); |
mbed_official | 232:1e593fe58241 | 235 | } |