mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/LPC407x_8x.ld@15:4892fe388435, 2013-08-07 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Aug 07 16:43:59 2013 +0300
- Revision:
- 15:4892fe388435
- Child:
- 67:78dfdb5b4d9e
Added LPC4088 target and interrupt chaining code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 15:4892fe388435 | 1 | /* |
bogdanm | 15:4892fe388435 | 2 | * GENERATED FILE - DO NOT EDIT |
bogdanm | 15:4892fe388435 | 3 | * (C) Code Red Technologies Ltd, 2008-2013 |
bogdanm | 15:4892fe388435 | 4 | * Generated linker script file for LPC4088 |
bogdanm | 15:4892fe388435 | 5 | * Created from generic_c.ld (vLPCXpresso v5.1 (2 [Build 2065] [2013-02-20] )) |
bogdanm | 15:4892fe388435 | 6 | * By LPCXpresso v5.1.2 [Build 2065] [2013-02-20] on Wed Apr 17 14:50:07 CEST 2013 |
bogdanm | 15:4892fe388435 | 7 | */ |
bogdanm | 15:4892fe388435 | 8 | |
bogdanm | 15:4892fe388435 | 9 | |
bogdanm | 15:4892fe388435 | 10 | GROUP(libgcc.a libc.a libstdc++.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o) |
bogdanm | 15:4892fe388435 | 11 | |
bogdanm | 15:4892fe388435 | 12 | MEMORY |
bogdanm | 15:4892fe388435 | 13 | { |
bogdanm | 15:4892fe388435 | 14 | /* Define each memory region */ |
bogdanm | 15:4892fe388435 | 15 | MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */ |
bogdanm | 15:4892fe388435 | 16 | RamLoc64 (rwx) : ORIGIN = 0x100000E8, LENGTH = 0xFF18 /* 64k */ |
bogdanm | 15:4892fe388435 | 17 | RamPeriph32 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000 /* 32k */ |
bogdanm | 15:4892fe388435 | 18 | |
bogdanm | 15:4892fe388435 | 19 | } |
bogdanm | 15:4892fe388435 | 20 | /* Define a symbol for the top of each memory region */ |
bogdanm | 15:4892fe388435 | 21 | __top_MFlash512 = 0x0 + 0x80000; |
bogdanm | 15:4892fe388435 | 22 | __top_RamLoc64 = 0x10000000 + 0x10000; |
bogdanm | 15:4892fe388435 | 23 | __top_RamPeriph32 = 0x20000000 + 0x8000; |
bogdanm | 15:4892fe388435 | 24 | |
bogdanm | 15:4892fe388435 | 25 | ENTRY(ResetISR) |
bogdanm | 15:4892fe388435 | 26 | |
bogdanm | 15:4892fe388435 | 27 | SECTIONS |
bogdanm | 15:4892fe388435 | 28 | { |
bogdanm | 15:4892fe388435 | 29 | |
bogdanm | 15:4892fe388435 | 30 | /* MAIN TEXT SECTION */ |
bogdanm | 15:4892fe388435 | 31 | .text : ALIGN(4) |
bogdanm | 15:4892fe388435 | 32 | { |
bogdanm | 15:4892fe388435 | 33 | FILL(0xff) |
bogdanm | 15:4892fe388435 | 34 | KEEP(*(.isr_vector)) |
bogdanm | 15:4892fe388435 | 35 | |
bogdanm | 15:4892fe388435 | 36 | /* Global Section Table */ |
bogdanm | 15:4892fe388435 | 37 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 38 | __section_table_start = .; |
bogdanm | 15:4892fe388435 | 39 | __data_section_table = .; |
bogdanm | 15:4892fe388435 | 40 | LONG(LOADADDR(.data)); |
bogdanm | 15:4892fe388435 | 41 | LONG( ADDR(.data)) ; |
bogdanm | 15:4892fe388435 | 42 | LONG( SIZEOF(.data)); |
bogdanm | 15:4892fe388435 | 43 | LONG(LOADADDR(.data_RAM2)); |
bogdanm | 15:4892fe388435 | 44 | LONG( ADDR(.data_RAM2)) ; |
bogdanm | 15:4892fe388435 | 45 | LONG( SIZEOF(.data_RAM2)); |
bogdanm | 15:4892fe388435 | 46 | __data_section_table_end = .; |
bogdanm | 15:4892fe388435 | 47 | __bss_section_table = .; |
bogdanm | 15:4892fe388435 | 48 | LONG( ADDR(.bss)); |
bogdanm | 15:4892fe388435 | 49 | LONG( SIZEOF(.bss)); |
bogdanm | 15:4892fe388435 | 50 | LONG( ADDR(.bss_RAM2)); |
bogdanm | 15:4892fe388435 | 51 | LONG( SIZEOF(.bss_RAM2)); |
bogdanm | 15:4892fe388435 | 52 | __bss_section_table_end = .; |
bogdanm | 15:4892fe388435 | 53 | __section_table_end = . ; |
bogdanm | 15:4892fe388435 | 54 | /* End of Global Section Table */ |
bogdanm | 15:4892fe388435 | 55 | |
bogdanm | 15:4892fe388435 | 56 | |
bogdanm | 15:4892fe388435 | 57 | *(.after_vectors*) |
bogdanm | 15:4892fe388435 | 58 | |
bogdanm | 15:4892fe388435 | 59 | *(.text*) |
bogdanm | 15:4892fe388435 | 60 | *(.rodata .rodata.*) |
bogdanm | 15:4892fe388435 | 61 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 62 | |
bogdanm | 15:4892fe388435 | 63 | /* C++ constructors etc */ |
bogdanm | 15:4892fe388435 | 64 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 65 | KEEP(*(.init)) |
bogdanm | 15:4892fe388435 | 66 | |
bogdanm | 15:4892fe388435 | 67 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 68 | __preinit_array_start = .; |
bogdanm | 15:4892fe388435 | 69 | KEEP (*(.preinit_array)) |
bogdanm | 15:4892fe388435 | 70 | __preinit_array_end = .; |
bogdanm | 15:4892fe388435 | 71 | |
bogdanm | 15:4892fe388435 | 72 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 73 | __init_array_start = .; |
bogdanm | 15:4892fe388435 | 74 | KEEP (*(SORT(.init_array.*))) |
bogdanm | 15:4892fe388435 | 75 | KEEP (*(.init_array)) |
bogdanm | 15:4892fe388435 | 76 | __init_array_end = .; |
bogdanm | 15:4892fe388435 | 77 | |
bogdanm | 15:4892fe388435 | 78 | KEEP(*(.fini)); |
bogdanm | 15:4892fe388435 | 79 | |
bogdanm | 15:4892fe388435 | 80 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 81 | KEEP (*crtbegin.o(.ctors)) |
bogdanm | 15:4892fe388435 | 82 | KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) |
bogdanm | 15:4892fe388435 | 83 | KEEP (*(SORT(.ctors.*))) |
bogdanm | 15:4892fe388435 | 84 | KEEP (*crtend.o(.ctors)) |
bogdanm | 15:4892fe388435 | 85 | |
bogdanm | 15:4892fe388435 | 86 | . = ALIGN(4); |
bogdanm | 15:4892fe388435 | 87 | KEEP (*crtbegin.o(.dtors)) |
bogdanm | 15:4892fe388435 | 88 | KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) |
bogdanm | 15:4892fe388435 | 89 | KEEP (*(SORT(.dtors.*))) |
bogdanm | 15:4892fe388435 | 90 | KEEP (*crtend.o(.dtors)) |
bogdanm | 15:4892fe388435 | 91 | /* End C++ */ |
bogdanm | 15:4892fe388435 | 92 | } > MFlash512 |
bogdanm | 15:4892fe388435 | 93 | |
bogdanm | 15:4892fe388435 | 94 | /* |
bogdanm | 15:4892fe388435 | 95 | * for exception handling/unwind - some Newlib functions (in common |
bogdanm | 15:4892fe388435 | 96 | * with C++ and STDC++) use this. |
bogdanm | 15:4892fe388435 | 97 | */ |
bogdanm | 15:4892fe388435 | 98 | .ARM.extab : ALIGN(4) |
bogdanm | 15:4892fe388435 | 99 | { |
bogdanm | 15:4892fe388435 | 100 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
bogdanm | 15:4892fe388435 | 101 | } > MFlash512 |
bogdanm | 15:4892fe388435 | 102 | __exidx_start = .; |
bogdanm | 15:4892fe388435 | 103 | |
bogdanm | 15:4892fe388435 | 104 | .ARM.exidx : ALIGN(4) |
bogdanm | 15:4892fe388435 | 105 | { |
bogdanm | 15:4892fe388435 | 106 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
bogdanm | 15:4892fe388435 | 107 | } > MFlash512 |
bogdanm | 15:4892fe388435 | 108 | __exidx_end = .; |
bogdanm | 15:4892fe388435 | 109 | |
bogdanm | 15:4892fe388435 | 110 | _etext = .; |
bogdanm | 15:4892fe388435 | 111 | |
bogdanm | 15:4892fe388435 | 112 | |
bogdanm | 15:4892fe388435 | 113 | /* DATA section for RamPeriph32 */ |
bogdanm | 15:4892fe388435 | 114 | .data_RAM2 : ALIGN(4) |
bogdanm | 15:4892fe388435 | 115 | { |
bogdanm | 15:4892fe388435 | 116 | FILL(0xff) |
bogdanm | 15:4892fe388435 | 117 | *(.data.$RAM2*) |
bogdanm | 15:4892fe388435 | 118 | *(.data.$RamPeriph32*) |
bogdanm | 15:4892fe388435 | 119 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 120 | } > RamPeriph32 AT>MFlash512 |
bogdanm | 15:4892fe388435 | 121 | |
bogdanm | 15:4892fe388435 | 122 | /* MAIN DATA SECTION */ |
bogdanm | 15:4892fe388435 | 123 | |
bogdanm | 15:4892fe388435 | 124 | |
bogdanm | 15:4892fe388435 | 125 | .uninit_RESERVED : ALIGN(4) |
bogdanm | 15:4892fe388435 | 126 | { |
bogdanm | 15:4892fe388435 | 127 | KEEP(*(.bss.$RESERVED*)) |
bogdanm | 15:4892fe388435 | 128 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 129 | _end_uninit_RESERVED = .; |
bogdanm | 15:4892fe388435 | 130 | } > RamLoc64 |
bogdanm | 15:4892fe388435 | 131 | |
bogdanm | 15:4892fe388435 | 132 | .data : ALIGN(4) |
bogdanm | 15:4892fe388435 | 133 | { |
bogdanm | 15:4892fe388435 | 134 | FILL(0xff) |
bogdanm | 15:4892fe388435 | 135 | _data = .; |
bogdanm | 15:4892fe388435 | 136 | *(vtable) |
bogdanm | 15:4892fe388435 | 137 | *(.data*) |
bogdanm | 15:4892fe388435 | 138 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 139 | _edata = .; |
bogdanm | 15:4892fe388435 | 140 | } > RamLoc64 AT>MFlash512 |
bogdanm | 15:4892fe388435 | 141 | |
bogdanm | 15:4892fe388435 | 142 | /* BSS section for RamPeriph32 */ |
bogdanm | 15:4892fe388435 | 143 | .bss_RAM2 : ALIGN(4) |
bogdanm | 15:4892fe388435 | 144 | { |
bogdanm | 15:4892fe388435 | 145 | *(.bss.$RAM2*) |
bogdanm | 15:4892fe388435 | 146 | *(.bss.$RamPeriph32*) |
bogdanm | 15:4892fe388435 | 147 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 148 | } > RamPeriph32 |
bogdanm | 15:4892fe388435 | 149 | |
bogdanm | 15:4892fe388435 | 150 | /* MAIN BSS SECTION */ |
bogdanm | 15:4892fe388435 | 151 | .bss : ALIGN(4) |
bogdanm | 15:4892fe388435 | 152 | { |
bogdanm | 15:4892fe388435 | 153 | _bss = .; |
bogdanm | 15:4892fe388435 | 154 | *(.bss*) |
bogdanm | 15:4892fe388435 | 155 | *(COMMON) |
bogdanm | 15:4892fe388435 | 156 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 157 | _ebss = .; |
bogdanm | 15:4892fe388435 | 158 | PROVIDE(end = .); |
bogdanm | 15:4892fe388435 | 159 | } > RamLoc64 |
bogdanm | 15:4892fe388435 | 160 | |
bogdanm | 15:4892fe388435 | 161 | /* NOINIT section for RamPeriph32 */ |
bogdanm | 15:4892fe388435 | 162 | .noinit_RAM2 (NOLOAD) : ALIGN(4) |
bogdanm | 15:4892fe388435 | 163 | { |
bogdanm | 15:4892fe388435 | 164 | *(.noinit.$RAM2*) |
bogdanm | 15:4892fe388435 | 165 | *(.noinit.$RamPeriph32*) |
bogdanm | 15:4892fe388435 | 166 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 167 | } > RamPeriph32 |
bogdanm | 15:4892fe388435 | 168 | |
bogdanm | 15:4892fe388435 | 169 | /* DEFAULT NOINIT SECTION */ |
bogdanm | 15:4892fe388435 | 170 | .noinit (NOLOAD): ALIGN(4) |
bogdanm | 15:4892fe388435 | 171 | { |
bogdanm | 15:4892fe388435 | 172 | _noinit = .; |
bogdanm | 15:4892fe388435 | 173 | *(.noinit*) |
bogdanm | 15:4892fe388435 | 174 | . = ALIGN(4) ; |
bogdanm | 15:4892fe388435 | 175 | _end_noinit = .; |
bogdanm | 15:4892fe388435 | 176 | } > RamLoc64 |
bogdanm | 15:4892fe388435 | 177 | |
bogdanm | 15:4892fe388435 | 178 | PROVIDE(_pvHeapStart = .); |
bogdanm | 15:4892fe388435 | 179 | PROVIDE(_vStackTop = __top_RamLoc64 - 0); |
bogdanm | 15:4892fe388435 | 180 | } |