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:
mbed_official
Date:
Mon Sep 15 15:30:06 2014 +0100
Revision:
323:3e2706a32e81
Parent:
20:4263a77256ae
Synchronized with git revision ffa4168e11172fe7e9f2905047fa8a65eaa09588

Full URL: https://github.com/mbedmicro/mbed/commit/ffa4168e11172fe7e9f2905047fa8a65eaa09588/

[HAL] MTS_GAMBIT - SPI pin names expansion

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 10:3bc89ef62ce7 1 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
emilmont 10:3bc89ef62ce7 2 OUTPUT_ARCH(arm)
emilmont 10:3bc89ef62ce7 3 ENTRY(vectors)
emilmont 10:3bc89ef62ce7 4
bogdanm 20:4263a77256ae 5 GROUP( libgcc.a libc.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o )
emilmont 10:3bc89ef62ce7 6
emilmont 10:3bc89ef62ce7 7 /* Memory Definitions: */
emilmont 10:3bc89ef62ce7 8 MEMORY
emilmont 10:3bc89ef62ce7 9 {
emilmont 10:3bc89ef62ce7 10 Flash (rx) : ORIGIN = 0x00000000, LENGTH = 512k
emilmont 10:3bc89ef62ce7 11 Ram (rwx) : ORIGIN = 0x40000000, LENGTH = 32k
emilmont 10:3bc89ef62ce7 12 UsbRam (rw) : ORIGIN = 0x7FD00000, LENGTH = 8k
emilmont 10:3bc89ef62ce7 13 EthRam (rw) : ORIGIN = 0x7FE00000, LENGTH = 16k
emilmont 10:3bc89ef62ce7 14 CanRam (rw) : ORIGIN = 0xE0038000, LENGTH = 2k
emilmont 10:3bc89ef62ce7 15 BatRam (rw) : ORIGIN = 0xE0084000, LENGTH = 2k
emilmont 10:3bc89ef62ce7 16 }
emilmont 10:3bc89ef62ce7 17
emilmont 10:3bc89ef62ce7 18 /* Stack sizes: */
emilmont 10:3bc89ef62ce7 19 UND_Stack_Size = 16;
emilmont 10:3bc89ef62ce7 20 SVC_Stack_Size = 512;
emilmont 10:3bc89ef62ce7 21 ABT_Stack_Size = 16;
emilmont 10:3bc89ef62ce7 22 FIQ_Stack_Size = 16;
emilmont 10:3bc89ef62ce7 23 IRQ_Stack_Size = 256;
emilmont 10:3bc89ef62ce7 24 Stack_Size_Total = UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + FIQ_Stack_Size + IRQ_Stack_Size;
emilmont 10:3bc89ef62ce7 25
emilmont 10:3bc89ef62ce7 26 /* Stack tops for each mode: */
emilmont 10:3bc89ef62ce7 27 __und_stack_top__ = __stacks_top__;
emilmont 10:3bc89ef62ce7 28 __abt_stack_top__ = __und_stack_top__ - UND_Stack_Size ;
emilmont 10:3bc89ef62ce7 29 __fiq_stack_top__ = __abt_stack_top__ - ABT_Stack_Size ;
emilmont 10:3bc89ef62ce7 30 __irq_stack_top__ = __fiq_stack_top__ - FIQ_Stack_Size ;
emilmont 10:3bc89ef62ce7 31 __svc_stack_top__ = __irq_stack_top__ - IRQ_Stack_Size ;
emilmont 10:3bc89ef62ce7 32
emilmont 10:3bc89ef62ce7 33 /* C-accessible symbols for memory address ranges: */
emilmont 10:3bc89ef62ce7 34 __FLASH_segment_start__ = ORIGIN( Flash );
emilmont 10:3bc89ef62ce7 35 __FLASH_segment_end__ = ORIGIN( Flash ) + LENGTH( Flash );
emilmont 10:3bc89ef62ce7 36 __SRAM_segment_start__ = ORIGIN( Ram );
emilmont 10:3bc89ef62ce7 37 __SRAM_segment_end__ = ORIGIN( Ram ) + LENGTH( Ram );
emilmont 10:3bc89ef62ce7 38
emilmont 10:3bc89ef62ce7 39 /* Stacks (full descending) at top of RAM, grows downward:
emilmont 10:3bc89ef62ce7 40 *
emilmont 10:3bc89ef62ce7 41 * __stack_min__ is used by the malloc implementation to ensure heap never collides
emilmont 10:3bc89ef62ce7 42 * with stack (assuming stack never grows beyond Stack_Size_Total in length) */
emilmont 10:3bc89ef62ce7 43 __stacks_top__ = __SRAM_segment_end__;
emilmont 10:3bc89ef62ce7 44 __stacks_min__ = __SRAM_segment_end__ - Stack_Size_Total;
emilmont 10:3bc89ef62ce7 45
emilmont 10:3bc89ef62ce7 46 SECTIONS
emilmont 10:3bc89ef62ce7 47 {
emilmont 10:3bc89ef62ce7 48 /* first section is .text which is used for code */
emilmont 10:3bc89ef62ce7 49 __text_start__ = . ;
emilmont 10:3bc89ef62ce7 50 .text : {
emilmont 10:3bc89ef62ce7 51 __privileged_code_start__ = . ;
emilmont 10:3bc89ef62ce7 52 KEEP( *( .vectors ) )
emilmont 10:3bc89ef62ce7 53 *( .privileged_code )
emilmont 10:3bc89ef62ce7 54
emilmont 10:3bc89ef62ce7 55 __privileged_code_end__ = .;
emilmont 10:3bc89ef62ce7 56
emilmont 10:3bc89ef62ce7 57 *( .text .text.* .gnu.linkonce.t.* )
emilmont 10:3bc89ef62ce7 58 *( .plt )
emilmont 10:3bc89ef62ce7 59 *( .gnu.warning )
emilmont 10:3bc89ef62ce7 60 *( .glue_7t ) *( .glue_7 ) *( .vfp11_veneer )
emilmont 10:3bc89ef62ce7 61
emilmont 10:3bc89ef62ce7 62 *( .rodata .rodata.* .gnu.linkonce.r.* )
emilmont 10:3bc89ef62ce7 63
emilmont 10:3bc89ef62ce7 64 *(.ARM.extab* .gnu.linkonce.armextab.*)
emilmont 10:3bc89ef62ce7 65 *(.gcc_except_table)
emilmont 10:3bc89ef62ce7 66 *(.eh_frame_hdr)
emilmont 10:3bc89ef62ce7 67 *(.eh_frame)
emilmont 10:3bc89ef62ce7 68
emilmont 10:3bc89ef62ce7 69 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 70 KEEP( *( .init ) )
emilmont 10:3bc89ef62ce7 71 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 72 __preinit_array_start = . ;
emilmont 10:3bc89ef62ce7 73 KEEP( *( .preinit_array ) )
emilmont 10:3bc89ef62ce7 74 __preinit_array_end = . ;
emilmont 10:3bc89ef62ce7 75 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 76 __init_array_start = . ;
emilmont 10:3bc89ef62ce7 77 KEEP( *( SORT( .init_array.* ) ) )
emilmont 10:3bc89ef62ce7 78 KEEP( *( .init_array ) )
emilmont 10:3bc89ef62ce7 79 __init_array_end = . ;
emilmont 10:3bc89ef62ce7 80
emilmont 10:3bc89ef62ce7 81 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 82 KEEP( *crtbegin.o( .ctors ) )
emilmont 10:3bc89ef62ce7 83 KEEP( *( EXCLUDE_FILE( *crtend.o ) .ctors ) )
emilmont 10:3bc89ef62ce7 84 KEEP( *( SORT( .ctors.* ) ) )
emilmont 10:3bc89ef62ce7 85 KEEP( *crtend.o( .ctors ) )
emilmont 10:3bc89ef62ce7 86
emilmont 10:3bc89ef62ce7 87 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 88 KEEP( *( .fini ) )
emilmont 10:3bc89ef62ce7 89 . = ALIGN( 4 ) ;
emilmont 10:3bc89ef62ce7 90 __fini_array_start = . ;
emilmont 10:3bc89ef62ce7 91 KEEP( *( .fini_array ) )
emilmont 10:3bc89ef62ce7 92 KEEP( *( SORT( .fini_array.* ) ) )
emilmont 10:3bc89ef62ce7 93 __fini_array_end = . ;
emilmont 10:3bc89ef62ce7 94
emilmont 10:3bc89ef62ce7 95 KEEP( *crtbegin.o( .dtors ) )
emilmont 10:3bc89ef62ce7 96 KEEP( *( EXCLUDE_FILE( *crtend.o ) .dtors ) )
emilmont 10:3bc89ef62ce7 97 KEEP( *( SORT( .dtors.* ) ) )
emilmont 10:3bc89ef62ce7 98 KEEP( *crtend.o( .dtors ) )
emilmont 10:3bc89ef62ce7 99
emilmont 10:3bc89ef62ce7 100 } >Flash
emilmont 10:3bc89ef62ce7 101
emilmont 10:3bc89ef62ce7 102 __exidx_start = . ;
emilmont 10:3bc89ef62ce7 103 .ARM.exidx : {
emilmont 10:3bc89ef62ce7 104 *( .ARM.exidx* .gnu.linkonce.armexidx.* )
emilmont 10:3bc89ef62ce7 105 } >Flash
emilmont 10:3bc89ef62ce7 106 __exidx_end = . ;
emilmont 10:3bc89ef62ce7 107
emilmont 10:3bc89ef62ce7 108 .text.align : { . = ALIGN( 8 ) ; } >Flash /* Alignment schenanigans */
emilmont 10:3bc89ef62ce7 109 __text_end__ = . ;
emilmont 10:3bc89ef62ce7 110
emilmont 10:3bc89ef62ce7 111 /* .bss section -- used for uninitialized data */
emilmont 10:3bc89ef62ce7 112 /* Located at the start of RAM */
emilmont 10:3bc89ef62ce7 113 .bss (NOLOAD) : {
emilmont 10:3bc89ef62ce7 114 __bss_start__ = . ;
emilmont 10:3bc89ef62ce7 115 *crt0.o( .ram_vectors )
emilmont 10:3bc89ef62ce7 116
emilmont 10:3bc89ef62ce7 117 __user_bss_start__ = . ;
emilmont 10:3bc89ef62ce7 118 *( .user_bss )
emilmont 10:3bc89ef62ce7 119 __user_bss_end__ = . ;
emilmont 10:3bc89ef62ce7 120
emilmont 10:3bc89ef62ce7 121 *( .shbss )
emilmont 10:3bc89ef62ce7 122 *( .bss .bss.* .gnu.linkonce.b.* )
emilmont 10:3bc89ef62ce7 123 *( COMMON )
emilmont 10:3bc89ef62ce7 124 *( .ram.b )
emilmont 10:3bc89ef62ce7 125 . = ALIGN( 8 ) ;
emilmont 10:3bc89ef62ce7 126
emilmont 10:3bc89ef62ce7 127 __bss_end__ = . ;
emilmont 10:3bc89ef62ce7 128 } >Ram AT>Flash
emilmont 10:3bc89ef62ce7 129
emilmont 10:3bc89ef62ce7 130 /* .data section -- used for initialized data */
emilmont 10:3bc89ef62ce7 131 .data : {
emilmont 10:3bc89ef62ce7 132 __data_start__ = . ;
emilmont 10:3bc89ef62ce7 133 KEEP( *( .jcr ) )
emilmont 10:3bc89ef62ce7 134 *( .got.plt ) *( .got )
emilmont 10:3bc89ef62ce7 135 *( .shdata )
emilmont 10:3bc89ef62ce7 136 *( .data .data.* .gnu.linkonce.d.* )
emilmont 10:3bc89ef62ce7 137 *( .ram )
emilmont 10:3bc89ef62ce7 138 . = ALIGN( 8 ) ;
emilmont 10:3bc89ef62ce7 139 __data_end__ = . ;
emilmont 10:3bc89ef62ce7 140 } >Ram AT>Flash
emilmont 10:3bc89ef62ce7 141
emilmont 10:3bc89ef62ce7 142 __data_init_start__ = LOADADDR( .data ) ;
emilmont 10:3bc89ef62ce7 143
emilmont 10:3bc89ef62ce7 144 /* Heap starts here and grows up in memory */
emilmont 10:3bc89ef62ce7 145 . = ALIGN( 8 ) ;
emilmont 10:3bc89ef62ce7 146 __heap_start__ = . ;
bogdanm 20:4263a77256ae 147 _pvHeapStart = . ;
bogdanm 20:4263a77256ae 148 end = . ;
emilmont 10:3bc89ef62ce7 149
emilmont 10:3bc89ef62ce7 150 .stab 0 (NOLOAD) : { *(.stab) }
emilmont 10:3bc89ef62ce7 151 .stabstr 0 (NOLOAD) : { *(.stabstr) }
emilmont 10:3bc89ef62ce7 152 /* DWARF debug sections. */
emilmont 10:3bc89ef62ce7 153 /* Symbols in the DWARF debugging sections are relative to the */
emilmont 10:3bc89ef62ce7 154 /* beginning of the section so we begin them at 0. */
emilmont 10:3bc89ef62ce7 155 /* DWARF 1 */
emilmont 10:3bc89ef62ce7 156 .debug 0 : { *(.debug) }
emilmont 10:3bc89ef62ce7 157 .line 0 : { *(.line) }
emilmont 10:3bc89ef62ce7 158 /* GNU DWARF 1 extensions */
emilmont 10:3bc89ef62ce7 159 .debug_srcinfo 0 : { *(.debug_srcinfo) }
emilmont 10:3bc89ef62ce7 160 .debug_sfnames 0 : { *(.debug_sfnames) }
emilmont 10:3bc89ef62ce7 161 /* DWARF 1.1 and DWARF 2 */
emilmont 10:3bc89ef62ce7 162 .debug_aranges 0 : { *(.debug_aranges) }
emilmont 10:3bc89ef62ce7 163 .debug_pubnames 0 : { *(.debug_pubnames) }
emilmont 10:3bc89ef62ce7 164 /* DWARF 2 */
emilmont 10:3bc89ef62ce7 165 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
emilmont 10:3bc89ef62ce7 166 .debug_abbrev 0 : { *(.debug_abbrev) }
emilmont 10:3bc89ef62ce7 167 .debug_line 0 : { *(.debug_line) }
emilmont 10:3bc89ef62ce7 168 .debug_frame 0 : { *(.debug_frame) }
emilmont 10:3bc89ef62ce7 169 .debug_str 0 : { *(.debug_str) }
emilmont 10:3bc89ef62ce7 170 .debug_loc 0 : { *(.debug_loc) }
emilmont 10:3bc89ef62ce7 171 .debug_macinfo 0 : { *(.debug_macinfo) }
emilmont 10:3bc89ef62ce7 172 /* SGI/MIPS DWARF 2 extensions */
emilmont 10:3bc89ef62ce7 173 .debug_weaknames 0 : { *(.debug_weaknames) }
emilmont 10:3bc89ef62ce7 174 .debug_funcnames 0 : { *(.debug_funcnames) }
emilmont 10:3bc89ef62ce7 175 .debug_typenames 0 : { *(.debug_typenames) }
emilmont 10:3bc89ef62ce7 176 .debug_varnames 0 : { *(.debug_varnames) }
emilmont 10:3bc89ef62ce7 177 /* DWARF 3 */
emilmont 10:3bc89ef62ce7 178 .debug_pubtypes 0 : { *(.debug_pubtypes) }
emilmont 10:3bc89ef62ce7 179 .debug_ranges 0 : { *(.debug_ranges) }
emilmont 10:3bc89ef62ce7 180
emilmont 10:3bc89ef62ce7 181 .note.gnu.arm.ident 0 : { KEEP( *( .note.gnu.arm.ident ) ) }
emilmont 10:3bc89ef62ce7 182 .ARM.attributes 0 : {
emilmont 10:3bc89ef62ce7 183 KEEP( *( .ARM.attributes ) )
emilmont 10:3bc89ef62ce7 184 KEEP( *( .gnu.attributes ) )
emilmont 10:3bc89ef62ce7 185 }
emilmont 10:3bc89ef62ce7 186 /DISCARD/ : { *( .note.GNU-stack ) }
emilmont 10:3bc89ef62ce7 187
emilmont 10:3bc89ef62ce7 188 /* C data can be defined as being in special purpose RAMs using
emilmont 10:3bc89ef62ce7 189 * __attribute__ ((section ("ethram"))) for example. */
emilmont 10:3bc89ef62ce7 190 .usbram (NOLOAD):
emilmont 10:3bc89ef62ce7 191 {
emilmont 10:3bc89ef62ce7 192 *( .usbram )
emilmont 10:3bc89ef62ce7 193 *( .usbram.* )
emilmont 10:3bc89ef62ce7 194 } > UsbRam
emilmont 10:3bc89ef62ce7 195 .ethram (NOLOAD):
emilmont 10:3bc89ef62ce7 196 {
emilmont 10:3bc89ef62ce7 197 *( .ethram )
emilmont 10:3bc89ef62ce7 198 *( .ethram.* )
emilmont 10:3bc89ef62ce7 199 } > EthRam
emilmont 10:3bc89ef62ce7 200 .canram (NOLOAD):
emilmont 10:3bc89ef62ce7 201 {
emilmont 10:3bc89ef62ce7 202 *( .canram )
emilmont 10:3bc89ef62ce7 203 *( .canram.* )
emilmont 10:3bc89ef62ce7 204 } > CanRam
emilmont 10:3bc89ef62ce7 205 .batram (NOLOAD):
emilmont 10:3bc89ef62ce7 206 {
emilmont 10:3bc89ef62ce7 207 *( .batram )
emilmont 10:3bc89ef62ce7 208 *( .batram.* )
emilmont 10:3bc89ef62ce7 209 } > BatRam
emilmont 10:3bc89ef62ce7 210 }