mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
emilmont
Date:
Fri Jun 14 17:49:17 2013 +0100
Revision:
10:3bc89ef62ce7
Unify mbed library sources

Who changed what in which revision?

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