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:
bogdanm
Date:
Mon Aug 05 14:12:34 2013 +0300
Revision:
13:0645d8841f51
Child:
67:78dfdb5b4d9e
Update mbed sources to revision 64

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 13:0645d8841f51 1 /* mbed - LPC11U24 linker script
bogdanm 13:0645d8841f51 2 * Based linker script generated by Code Red Technologies Red Suite 4.1
bogdanm 13:0645d8841f51 3 */
bogdanm 13:0645d8841f51 4 GROUP(libgcc.a libc.a libstdc++.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o)
bogdanm 13:0645d8841f51 5
bogdanm 13:0645d8841f51 6 MEMORY
bogdanm 13:0645d8841f51 7 {
bogdanm 13:0645d8841f51 8 /* Define each memory region */
bogdanm 13:0645d8841f51 9 MFlash32 (rx) : ORIGIN = 0x0, LENGTH = 0x8000 /* 32k */
bogdanm 13:0645d8841f51 10 RamLoc8 (rwx) : ORIGIN = 0x100000C0, LENGTH = 0x1F40 /* 8k */
bogdanm 13:0645d8841f51 11 RamUsb2 (rwx) : ORIGIN = 0x20004000, LENGTH = 0x800 /* 2k */
bogdanm 13:0645d8841f51 12 }
bogdanm 13:0645d8841f51 13 /* Define a symbol for the top of each memory region */
bogdanm 13:0645d8841f51 14 __top_MFlash32 = 0x0 + 0x8000;
bogdanm 13:0645d8841f51 15 __top_RamLoc8 = 0x10000000 + 0x2000;
bogdanm 13:0645d8841f51 16 __top_RamUsb2 = 0x20004000 + 0x800;
bogdanm 13:0645d8841f51 17
bogdanm 13:0645d8841f51 18 ENTRY(ResetISR)
bogdanm 13:0645d8841f51 19
bogdanm 13:0645d8841f51 20 SECTIONS
bogdanm 13:0645d8841f51 21 {
bogdanm 13:0645d8841f51 22
bogdanm 13:0645d8841f51 23 /* MAIN TEXT SECTION */
bogdanm 13:0645d8841f51 24 .text : ALIGN(4)
bogdanm 13:0645d8841f51 25 {
bogdanm 13:0645d8841f51 26 FILL(0xff)
bogdanm 13:0645d8841f51 27 KEEP(*(.isr_vector))
bogdanm 13:0645d8841f51 28
bogdanm 13:0645d8841f51 29 /* Global Section Table */
bogdanm 13:0645d8841f51 30 . = ALIGN(4) ;
bogdanm 13:0645d8841f51 31 __section_table_start = .;
bogdanm 13:0645d8841f51 32 __data_section_table = .;
bogdanm 13:0645d8841f51 33 LONG(LOADADDR(.data));
bogdanm 13:0645d8841f51 34 LONG( ADDR(.data)) ;
bogdanm 13:0645d8841f51 35 LONG( SIZEOF(.data));
bogdanm 13:0645d8841f51 36 LONG(LOADADDR(.data_RAM2));
bogdanm 13:0645d8841f51 37 LONG( ADDR(.data_RAM2)) ;
bogdanm 13:0645d8841f51 38 LONG( SIZEOF(.data_RAM2));
bogdanm 13:0645d8841f51 39 __data_section_table_end = .;
bogdanm 13:0645d8841f51 40 __bss_section_table = .;
bogdanm 13:0645d8841f51 41 LONG( ADDR(.bss));
bogdanm 13:0645d8841f51 42 LONG( SIZEOF(.bss));
bogdanm 13:0645d8841f51 43 LONG( ADDR(.bss_RAM2));
bogdanm 13:0645d8841f51 44 LONG( SIZEOF(.bss_RAM2));
bogdanm 13:0645d8841f51 45 __bss_section_table_end = .;
bogdanm 13:0645d8841f51 46 __section_table_end = . ;
bogdanm 13:0645d8841f51 47 /* End of Global Section Table */
bogdanm 13:0645d8841f51 48
bogdanm 13:0645d8841f51 49
bogdanm 13:0645d8841f51 50 *(.after_vectors*)
bogdanm 13:0645d8841f51 51
bogdanm 13:0645d8841f51 52 *(.text*)
bogdanm 13:0645d8841f51 53 *(.rodata .rodata.*)
bogdanm 13:0645d8841f51 54 . = ALIGN(4);
bogdanm 13:0645d8841f51 55
bogdanm 13:0645d8841f51 56 /* C++ constructors etc */
bogdanm 13:0645d8841f51 57 . = ALIGN(4);
bogdanm 13:0645d8841f51 58 KEEP(*(.init))
bogdanm 13:0645d8841f51 59
bogdanm 13:0645d8841f51 60 . = ALIGN(4);
bogdanm 13:0645d8841f51 61 __preinit_array_start = .;
bogdanm 13:0645d8841f51 62 KEEP (*(.preinit_array))
bogdanm 13:0645d8841f51 63 __preinit_array_end = .;
bogdanm 13:0645d8841f51 64
bogdanm 13:0645d8841f51 65 . = ALIGN(4);
bogdanm 13:0645d8841f51 66 __init_array_start = .;
bogdanm 13:0645d8841f51 67 KEEP (*(SORT(.init_array.*)))
bogdanm 13:0645d8841f51 68 KEEP (*(.init_array))
bogdanm 13:0645d8841f51 69 __init_array_end = .;
bogdanm 13:0645d8841f51 70
bogdanm 13:0645d8841f51 71 KEEP(*(.fini));
bogdanm 13:0645d8841f51 72
bogdanm 13:0645d8841f51 73 . = ALIGN(0x4);
bogdanm 13:0645d8841f51 74 KEEP (*crtbegin.o(.ctors))
bogdanm 13:0645d8841f51 75 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
bogdanm 13:0645d8841f51 76 KEEP (*(SORT(.ctors.*)))
bogdanm 13:0645d8841f51 77 KEEP (*crtend.o(.ctors))
bogdanm 13:0645d8841f51 78
bogdanm 13:0645d8841f51 79 . = ALIGN(0x4);
bogdanm 13:0645d8841f51 80 KEEP (*crtbegin.o(.dtors))
bogdanm 13:0645d8841f51 81 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
bogdanm 13:0645d8841f51 82 KEEP (*(SORT(.dtors.*)))
bogdanm 13:0645d8841f51 83 KEEP (*crtend.o(.dtors))
bogdanm 13:0645d8841f51 84 /* End C++ */
bogdanm 13:0645d8841f51 85 } > MFlash32
bogdanm 13:0645d8841f51 86
bogdanm 13:0645d8841f51 87 /*
bogdanm 13:0645d8841f51 88 * for exception handling/unwind - some Newlib functions (in common
bogdanm 13:0645d8841f51 89 * with C++ and STDC++) use this.
bogdanm 13:0645d8841f51 90 */
bogdanm 13:0645d8841f51 91 .ARM.extab : ALIGN(4)
bogdanm 13:0645d8841f51 92 {
bogdanm 13:0645d8841f51 93 *(.ARM.extab* .gnu.linkonce.armextab.*)
bogdanm 13:0645d8841f51 94 } > MFlash32
bogdanm 13:0645d8841f51 95 __exidx_start = .;
bogdanm 13:0645d8841f51 96
bogdanm 13:0645d8841f51 97 .ARM.exidx : ALIGN(4)
bogdanm 13:0645d8841f51 98 {
bogdanm 13:0645d8841f51 99 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
bogdanm 13:0645d8841f51 100 } > MFlash32
bogdanm 13:0645d8841f51 101 __exidx_end = .;
bogdanm 13:0645d8841f51 102
bogdanm 13:0645d8841f51 103 _etext = .;
bogdanm 13:0645d8841f51 104
bogdanm 13:0645d8841f51 105
bogdanm 13:0645d8841f51 106 .data_RAM2 : ALIGN(4)
bogdanm 13:0645d8841f51 107 {
bogdanm 13:0645d8841f51 108 FILL(0xff)
bogdanm 13:0645d8841f51 109 *(.data.$RAM2*)
bogdanm 13:0645d8841f51 110 *(.data.$RamUsb2*)
bogdanm 13:0645d8841f51 111 . = ALIGN(4) ;
bogdanm 13:0645d8841f51 112 } > RamUsb2 AT>MFlash32
bogdanm 13:0645d8841f51 113
bogdanm 13:0645d8841f51 114 /* MAIN DATA SECTION */
bogdanm 13:0645d8841f51 115
bogdanm 13:0645d8841f51 116 .uninit_RESERVED : ALIGN(4)
bogdanm 13:0645d8841f51 117 {
bogdanm 13:0645d8841f51 118 KEEP(*(.bss.$RESERVED*))
bogdanm 13:0645d8841f51 119 } > RamLoc8
bogdanm 13:0645d8841f51 120
bogdanm 13:0645d8841f51 121 .data : ALIGN(4)
bogdanm 13:0645d8841f51 122 {
bogdanm 13:0645d8841f51 123 FILL(0xff)
bogdanm 13:0645d8841f51 124 _data = .;
bogdanm 13:0645d8841f51 125 *(vtable)
bogdanm 13:0645d8841f51 126 *(.data*)
bogdanm 13:0645d8841f51 127 . = ALIGN(4) ;
bogdanm 13:0645d8841f51 128 _edata = .;
bogdanm 13:0645d8841f51 129 } > RamLoc8 AT>MFlash32
bogdanm 13:0645d8841f51 130
bogdanm 13:0645d8841f51 131
bogdanm 13:0645d8841f51 132 .bss_RAM2 : ALIGN(4)
bogdanm 13:0645d8841f51 133 {
bogdanm 13:0645d8841f51 134 *(.bss.$RAM2*)
bogdanm 13:0645d8841f51 135 *(.bss.$RamUsb2*)
bogdanm 13:0645d8841f51 136 . = ALIGN(4) ;
bogdanm 13:0645d8841f51 137 } > RamUsb2
bogdanm 13:0645d8841f51 138
bogdanm 13:0645d8841f51 139 /* MAIN BSS SECTION */
bogdanm 13:0645d8841f51 140 .bss : ALIGN(4)
bogdanm 13:0645d8841f51 141 {
bogdanm 13:0645d8841f51 142 _bss = .;
bogdanm 13:0645d8841f51 143 *(.bss*)
bogdanm 13:0645d8841f51 144 *(COMMON)
bogdanm 13:0645d8841f51 145 . = ALIGN(4) ;
bogdanm 13:0645d8841f51 146 _ebss = .;
bogdanm 13:0645d8841f51 147 PROVIDE(end = .);
bogdanm 13:0645d8841f51 148 } > RamLoc8
bogdanm 13:0645d8841f51 149
bogdanm 13:0645d8841f51 150 PROVIDE(_pvHeapStart = .);
bogdanm 13:0645d8841f51 151 PROVIDE(_vStackTop = __top_RamLoc8 - 0);
bogdanm 13:0645d8841f51 152 }