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
Parent:
vendor/NXP/LPC2368/cmsis/GCC_ARM/LPC2368.ld@10:3bc89ef62ce7
Child:
20:4263a77256ae
Update mbed sources to revision 64

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