The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_KL43Z/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld@138:093f2bd7b9eb, 2017-03-14 (annotated)
- Committer:
- <>
- Date:
- Tue Mar 14 16:20:51 2017 +0000
- Revision:
- 138:093f2bd7b9eb
- Parent:
- 124:2241e3a39974
- Child:
- 140:97feb9bacc10
Release 138 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3716: fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files https://github.com/ARMmbed/mbed-os/pull/3716
3741: STM32 remove warning in hal_tick_32b.c file https://github.com/ARMmbed/mbed-os/pull/3741
3780: STM32L4 : Fix GPIO G port compatibility https://github.com/ARMmbed/mbed-os/pull/3780
3831: NCS36510: SPISLAVE enabled (Conflict resolved) https://github.com/ARMmbed/mbed-os/pull/3831
3836: Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os https://github.com/ARMmbed/mbed-os/pull/3836
3840: STM32: gpio SPEED - always set High Speed by default https://github.com/ARMmbed/mbed-os/pull/3840
3844: STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR) https://github.com/ARMmbed/mbed-os/pull/3844
3850: STM32: change spi error to debug warning https://github.com/ARMmbed/mbed-os/pull/3850
3860: Define GPIO_IP_WITHOUT_BRR for xDot platform https://github.com/ARMmbed/mbed-os/pull/3860
3880: DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated https://github.com/ARMmbed/mbed-os/pull/3880
3795: Fix pwm period calc https://github.com/ARMmbed/mbed-os/pull/3795
3828: STM32 CAN API: correct format and type https://github.com/ARMmbed/mbed-os/pull/3828
3842: TARGET_NRF: corrected spi_init() to properly handle re-initialization https://github.com/ARMmbed/mbed-os/pull/3842
3843: STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz) https://github.com/ARMmbed/mbed-os/pull/3843
3879: NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10. https://github.com/ARMmbed/mbed-os/pull/3879
3902: Fix heap and stack size for NUCLEO_F746ZG https://github.com/ARMmbed/mbed-os/pull/3902
3829: can_write(): return error code when no tx mailboxes are available https://github.com/ARMmbed/mbed-os/pull/3829
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 124:2241e3a39974 | 1 | /* |
Kojto | 124:2241e3a39974 | 2 | ** ################################################################### |
Kojto | 124:2241e3a39974 | 3 | ** Processors: MKL43Z256VLH4 |
Kojto | 124:2241e3a39974 | 4 | ** MKL43Z256VMP4 |
Kojto | 124:2241e3a39974 | 5 | ** |
Kojto | 124:2241e3a39974 | 6 | ** Compiler: GNU C Compiler |
Kojto | 124:2241e3a39974 | 7 | ** Reference manual: KL43P64M48SF6RM, Rev.3, Aug 2014 |
Kojto | 124:2241e3a39974 | 8 | ** Version: rev. 1.6, 2015-07-29 |
Kojto | 124:2241e3a39974 | 9 | ** Build: b160613 |
Kojto | 124:2241e3a39974 | 10 | ** |
Kojto | 124:2241e3a39974 | 11 | ** Abstract: |
Kojto | 124:2241e3a39974 | 12 | ** Linker file for the GNU C Compiler |
Kojto | 124:2241e3a39974 | 13 | ** |
Kojto | 124:2241e3a39974 | 14 | ** Copyright (c) 2016 Freescale Semiconductor, Inc. |
Kojto | 124:2241e3a39974 | 15 | ** All rights reserved. |
Kojto | 124:2241e3a39974 | 16 | ** |
Kojto | 124:2241e3a39974 | 17 | ** Redistribution and use in source and binary forms, with or without modification, |
Kojto | 124:2241e3a39974 | 18 | ** are permitted provided that the following conditions are met: |
Kojto | 124:2241e3a39974 | 19 | ** |
Kojto | 124:2241e3a39974 | 20 | ** o Redistributions of source code must retain the above copyright notice, this list |
Kojto | 124:2241e3a39974 | 21 | ** of conditions and the following disclaimer. |
Kojto | 124:2241e3a39974 | 22 | ** |
Kojto | 124:2241e3a39974 | 23 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
Kojto | 124:2241e3a39974 | 24 | ** list of conditions and the following disclaimer in the documentation and/or |
Kojto | 124:2241e3a39974 | 25 | ** other materials provided with the distribution. |
Kojto | 124:2241e3a39974 | 26 | ** |
Kojto | 124:2241e3a39974 | 27 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
Kojto | 124:2241e3a39974 | 28 | ** contributors may be used to endorse or promote products derived from this |
Kojto | 124:2241e3a39974 | 29 | ** software without specific prior written permission. |
Kojto | 124:2241e3a39974 | 30 | ** |
Kojto | 124:2241e3a39974 | 31 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
Kojto | 124:2241e3a39974 | 32 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
Kojto | 124:2241e3a39974 | 33 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 124:2241e3a39974 | 34 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
Kojto | 124:2241e3a39974 | 35 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
Kojto | 124:2241e3a39974 | 36 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
Kojto | 124:2241e3a39974 | 37 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
Kojto | 124:2241e3a39974 | 38 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Kojto | 124:2241e3a39974 | 39 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
Kojto | 124:2241e3a39974 | 40 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 124:2241e3a39974 | 41 | ** |
Kojto | 124:2241e3a39974 | 42 | ** http: www.freescale.com |
Kojto | 124:2241e3a39974 | 43 | ** mail: support@freescale.com |
Kojto | 124:2241e3a39974 | 44 | ** |
Kojto | 124:2241e3a39974 | 45 | ** ################################################################### |
Kojto | 124:2241e3a39974 | 46 | */ |
Kojto | 124:2241e3a39974 | 47 | |
Kojto | 124:2241e3a39974 | 48 | /* Entry Point */ |
Kojto | 124:2241e3a39974 | 49 | ENTRY(Reset_Handler) |
Kojto | 124:2241e3a39974 | 50 | |
Kojto | 124:2241e3a39974 | 51 | __ram_vector_table__ = 1; |
Kojto | 124:2241e3a39974 | 52 | |
Kojto | 124:2241e3a39974 | 53 | /* Heap 1/4 of ram and stack 1/8 */ |
Kojto | 124:2241e3a39974 | 54 | __stack_size__ = 0x1000; |
Kojto | 124:2241e3a39974 | 55 | __heap_size__ = 0x2800; |
Kojto | 124:2241e3a39974 | 56 | |
Kojto | 124:2241e3a39974 | 57 | HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x0400; |
Kojto | 124:2241e3a39974 | 58 | STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400; |
Kojto | 124:2241e3a39974 | 59 | M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x0200 : 0x0; |
Kojto | 124:2241e3a39974 | 60 | |
Kojto | 124:2241e3a39974 | 61 | /* Specify the memory areas */ |
Kojto | 124:2241e3a39974 | 62 | MEMORY |
Kojto | 124:2241e3a39974 | 63 | { |
Kojto | 124:2241e3a39974 | 64 | m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000200 |
Kojto | 124:2241e3a39974 | 65 | m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010 |
Kojto | 124:2241e3a39974 | 66 | m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0 |
Kojto | 124:2241e3a39974 | 67 | m_data (RW) : ORIGIN = 0x1FFFE000, LENGTH = 0x00008000 |
Kojto | 124:2241e3a39974 | 68 | } |
Kojto | 124:2241e3a39974 | 69 | |
Kojto | 124:2241e3a39974 | 70 | /* Define output sections */ |
Kojto | 124:2241e3a39974 | 71 | SECTIONS |
Kojto | 124:2241e3a39974 | 72 | { |
Kojto | 124:2241e3a39974 | 73 | /* The startup code goes first into internal flash */ |
Kojto | 124:2241e3a39974 | 74 | .interrupts : |
Kojto | 124:2241e3a39974 | 75 | { |
Kojto | 124:2241e3a39974 | 76 | __VECTOR_TABLE = .; |
Kojto | 124:2241e3a39974 | 77 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 78 | KEEP(*(.isr_vector)) /* Startup code */ |
Kojto | 124:2241e3a39974 | 79 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 80 | } > m_interrupts |
Kojto | 124:2241e3a39974 | 81 | |
Kojto | 124:2241e3a39974 | 82 | .flash_config : |
Kojto | 124:2241e3a39974 | 83 | { |
Kojto | 124:2241e3a39974 | 84 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 85 | KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ |
Kojto | 124:2241e3a39974 | 86 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 87 | } > m_flash_config |
Kojto | 124:2241e3a39974 | 88 | |
Kojto | 124:2241e3a39974 | 89 | /* The program code and other data goes into internal flash */ |
Kojto | 124:2241e3a39974 | 90 | .text : |
Kojto | 124:2241e3a39974 | 91 | { |
Kojto | 124:2241e3a39974 | 92 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 93 | *(.text) /* .text sections (code) */ |
Kojto | 124:2241e3a39974 | 94 | *(.text*) /* .text* sections (code) */ |
Kojto | 124:2241e3a39974 | 95 | *(.rodata) /* .rodata sections (constants, strings, etc.) */ |
Kojto | 124:2241e3a39974 | 96 | *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ |
Kojto | 124:2241e3a39974 | 97 | *(.glue_7) /* glue arm to thumb code */ |
Kojto | 124:2241e3a39974 | 98 | *(.glue_7t) /* glue thumb to arm code */ |
Kojto | 124:2241e3a39974 | 99 | *(.eh_frame) |
Kojto | 124:2241e3a39974 | 100 | KEEP (*(.init)) |
Kojto | 124:2241e3a39974 | 101 | KEEP (*(.fini)) |
Kojto | 124:2241e3a39974 | 102 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 103 | } > m_text |
Kojto | 124:2241e3a39974 | 104 | |
Kojto | 124:2241e3a39974 | 105 | .ARM.extab : |
Kojto | 124:2241e3a39974 | 106 | { |
Kojto | 124:2241e3a39974 | 107 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
Kojto | 124:2241e3a39974 | 108 | } > m_text |
Kojto | 124:2241e3a39974 | 109 | |
Kojto | 124:2241e3a39974 | 110 | .ARM : |
Kojto | 124:2241e3a39974 | 111 | { |
Kojto | 124:2241e3a39974 | 112 | __exidx_start = .; |
Kojto | 124:2241e3a39974 | 113 | *(.ARM.exidx*) |
Kojto | 124:2241e3a39974 | 114 | __exidx_end = .; |
Kojto | 124:2241e3a39974 | 115 | } > m_text |
Kojto | 124:2241e3a39974 | 116 | |
Kojto | 124:2241e3a39974 | 117 | .ctors : |
Kojto | 124:2241e3a39974 | 118 | { |
Kojto | 124:2241e3a39974 | 119 | __CTOR_LIST__ = .; |
Kojto | 124:2241e3a39974 | 120 | /* gcc uses crtbegin.o to find the start of |
Kojto | 124:2241e3a39974 | 121 | the constructors, so we make sure it is |
Kojto | 124:2241e3a39974 | 122 | first. Because this is a wildcard, it |
Kojto | 124:2241e3a39974 | 123 | doesn't matter if the user does not |
Kojto | 124:2241e3a39974 | 124 | actually link against crtbegin.o; the |
Kojto | 124:2241e3a39974 | 125 | linker won't look for a file to match a |
Kojto | 124:2241e3a39974 | 126 | wildcard. The wildcard also means that it |
Kojto | 124:2241e3a39974 | 127 | doesn't matter which directory crtbegin.o |
Kojto | 124:2241e3a39974 | 128 | is in. */ |
Kojto | 124:2241e3a39974 | 129 | KEEP (*crtbegin.o(.ctors)) |
Kojto | 124:2241e3a39974 | 130 | KEEP (*crtbegin?.o(.ctors)) |
Kojto | 124:2241e3a39974 | 131 | /* We don't want to include the .ctor section from |
Kojto | 124:2241e3a39974 | 132 | from the crtend.o file until after the sorted ctors. |
Kojto | 124:2241e3a39974 | 133 | The .ctor section from the crtend file contains the |
Kojto | 124:2241e3a39974 | 134 | end of ctors marker and it must be last */ |
Kojto | 124:2241e3a39974 | 135 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)) |
Kojto | 124:2241e3a39974 | 136 | KEEP (*(SORT(.ctors.*))) |
Kojto | 124:2241e3a39974 | 137 | KEEP (*(.ctors)) |
Kojto | 124:2241e3a39974 | 138 | __CTOR_END__ = .; |
Kojto | 124:2241e3a39974 | 139 | } > m_text |
Kojto | 124:2241e3a39974 | 140 | |
Kojto | 124:2241e3a39974 | 141 | .dtors : |
Kojto | 124:2241e3a39974 | 142 | { |
Kojto | 124:2241e3a39974 | 143 | __DTOR_LIST__ = .; |
Kojto | 124:2241e3a39974 | 144 | KEEP (*crtbegin.o(.dtors)) |
Kojto | 124:2241e3a39974 | 145 | KEEP (*crtbegin?.o(.dtors)) |
Kojto | 124:2241e3a39974 | 146 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)) |
Kojto | 124:2241e3a39974 | 147 | KEEP (*(SORT(.dtors.*))) |
Kojto | 124:2241e3a39974 | 148 | KEEP (*(.dtors)) |
Kojto | 124:2241e3a39974 | 149 | __DTOR_END__ = .; |
Kojto | 124:2241e3a39974 | 150 | } > m_text |
Kojto | 124:2241e3a39974 | 151 | |
Kojto | 124:2241e3a39974 | 152 | .preinit_array : |
Kojto | 124:2241e3a39974 | 153 | { |
Kojto | 124:2241e3a39974 | 154 | PROVIDE_HIDDEN (__preinit_array_start = .); |
Kojto | 124:2241e3a39974 | 155 | KEEP (*(.preinit_array*)) |
Kojto | 124:2241e3a39974 | 156 | PROVIDE_HIDDEN (__preinit_array_end = .); |
Kojto | 124:2241e3a39974 | 157 | } > m_text |
Kojto | 124:2241e3a39974 | 158 | |
Kojto | 124:2241e3a39974 | 159 | .init_array : |
Kojto | 124:2241e3a39974 | 160 | { |
Kojto | 124:2241e3a39974 | 161 | PROVIDE_HIDDEN (__init_array_start = .); |
Kojto | 124:2241e3a39974 | 162 | KEEP (*(SORT(.init_array.*))) |
Kojto | 124:2241e3a39974 | 163 | KEEP (*(.init_array*)) |
Kojto | 124:2241e3a39974 | 164 | PROVIDE_HIDDEN (__init_array_end = .); |
Kojto | 124:2241e3a39974 | 165 | } > m_text |
Kojto | 124:2241e3a39974 | 166 | |
Kojto | 124:2241e3a39974 | 167 | .fini_array : |
Kojto | 124:2241e3a39974 | 168 | { |
Kojto | 124:2241e3a39974 | 169 | PROVIDE_HIDDEN (__fini_array_start = .); |
Kojto | 124:2241e3a39974 | 170 | KEEP (*(SORT(.fini_array.*))) |
Kojto | 124:2241e3a39974 | 171 | KEEP (*(.fini_array*)) |
Kojto | 124:2241e3a39974 | 172 | PROVIDE_HIDDEN (__fini_array_end = .); |
Kojto | 124:2241e3a39974 | 173 | } > m_text |
Kojto | 124:2241e3a39974 | 174 | |
Kojto | 124:2241e3a39974 | 175 | __etext = .; /* define a global symbol at end of code */ |
Kojto | 124:2241e3a39974 | 176 | __DATA_ROM = .; /* Symbol is used by startup for data initialization */ |
Kojto | 124:2241e3a39974 | 177 | |
Kojto | 124:2241e3a39974 | 178 | /* reserve MTB memory at the beginning of m_data */ |
Kojto | 124:2241e3a39974 | 179 | .mtb : /* MTB buffer address as defined by the hardware */ |
Kojto | 124:2241e3a39974 | 180 | { |
Kojto | 124:2241e3a39974 | 181 | . = ALIGN(8); |
Kojto | 124:2241e3a39974 | 182 | _mtb_start = .; |
Kojto | 124:2241e3a39974 | 183 | KEEP(*(.mtb_buf)) /* need to KEEP Micro Trace Buffer as not referenced by application */ |
Kojto | 124:2241e3a39974 | 184 | . = ALIGN(8); |
Kojto | 124:2241e3a39974 | 185 | _mtb_end = .; |
Kojto | 124:2241e3a39974 | 186 | } > m_data |
Kojto | 124:2241e3a39974 | 187 | |
Kojto | 124:2241e3a39974 | 188 | .interrupts_ram : |
Kojto | 124:2241e3a39974 | 189 | { |
Kojto | 124:2241e3a39974 | 190 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 191 | __VECTOR_RAM__ = .; |
Kojto | 124:2241e3a39974 | 192 | __interrupts_ram_start__ = .; /* Create a global symbol at data start */ |
Kojto | 124:2241e3a39974 | 193 | *(.m_interrupts_ram) /* This is a user defined section */ |
Kojto | 124:2241e3a39974 | 194 | . += M_VECTOR_RAM_SIZE; |
Kojto | 124:2241e3a39974 | 195 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 196 | __interrupts_ram_end__ = .; /* Define a global symbol at data end */ |
Kojto | 124:2241e3a39974 | 197 | } > m_data |
Kojto | 124:2241e3a39974 | 198 | |
Kojto | 124:2241e3a39974 | 199 | __VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts); |
Kojto | 124:2241e3a39974 | 200 | __RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0; |
Kojto | 124:2241e3a39974 | 201 | |
Kojto | 124:2241e3a39974 | 202 | .data : AT(__DATA_ROM) |
Kojto | 124:2241e3a39974 | 203 | { |
Kojto | 124:2241e3a39974 | 204 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 205 | __DATA_RAM = .; |
Kojto | 124:2241e3a39974 | 206 | __data_start__ = .; /* create a global symbol at data start */ |
Kojto | 124:2241e3a39974 | 207 | *(.data) /* .data sections */ |
Kojto | 124:2241e3a39974 | 208 | *(.data*) /* .data* sections */ |
Kojto | 124:2241e3a39974 | 209 | KEEP(*(.jcr*)) |
Kojto | 124:2241e3a39974 | 210 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 211 | __data_end__ = .; /* define a global symbol at data end */ |
Kojto | 124:2241e3a39974 | 212 | } > m_data |
Kojto | 124:2241e3a39974 | 213 | |
Kojto | 124:2241e3a39974 | 214 | __DATA_END = __DATA_ROM + (__data_end__ - __data_start__); |
Kojto | 124:2241e3a39974 | 215 | text_end = ORIGIN(m_text) + LENGTH(m_text); |
Kojto | 124:2241e3a39974 | 216 | ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data") |
Kojto | 124:2241e3a39974 | 217 | |
Kojto | 124:2241e3a39974 | 218 | USB_RAM_GAP = DEFINED(__usb_ram_size__) ? __usb_ram_size__ : 0x00; |
Kojto | 124:2241e3a39974 | 219 | /* Uninitialized data section */ |
Kojto | 124:2241e3a39974 | 220 | .bss : |
Kojto | 124:2241e3a39974 | 221 | { |
Kojto | 124:2241e3a39974 | 222 | /* This is used by the startup in order to initialize the .bss section */ |
Kojto | 124:2241e3a39974 | 223 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 224 | __START_BSS = .; |
Kojto | 124:2241e3a39974 | 225 | __bss_start__ = .; |
Kojto | 124:2241e3a39974 | 226 | *(.bss) |
Kojto | 124:2241e3a39974 | 227 | *(.bss*) |
Kojto | 124:2241e3a39974 | 228 | . = ALIGN(512); |
Kojto | 124:2241e3a39974 | 229 | USB_RAM_START = .; |
Kojto | 124:2241e3a39974 | 230 | . += USB_RAM_GAP; |
Kojto | 124:2241e3a39974 | 231 | *(COMMON) |
Kojto | 124:2241e3a39974 | 232 | . = ALIGN(4); |
Kojto | 124:2241e3a39974 | 233 | __bss_end__ = .; |
Kojto | 124:2241e3a39974 | 234 | __END_BSS = .; |
Kojto | 124:2241e3a39974 | 235 | } > m_data |
Kojto | 124:2241e3a39974 | 236 | |
Kojto | 124:2241e3a39974 | 237 | .heap : |
Kojto | 124:2241e3a39974 | 238 | { |
Kojto | 124:2241e3a39974 | 239 | . = ALIGN(8); |
Kojto | 124:2241e3a39974 | 240 | __end__ = .; |
Kojto | 124:2241e3a39974 | 241 | PROVIDE(end = .); |
Kojto | 124:2241e3a39974 | 242 | __HeapBase = .; |
Kojto | 124:2241e3a39974 | 243 | . += HEAP_SIZE; |
Kojto | 124:2241e3a39974 | 244 | __HeapLimit = .; |
Kojto | 124:2241e3a39974 | 245 | __heap_limit = .; /* Add for _sbrk */ |
Kojto | 124:2241e3a39974 | 246 | } > m_data |
Kojto | 124:2241e3a39974 | 247 | |
Kojto | 124:2241e3a39974 | 248 | .stack : |
Kojto | 124:2241e3a39974 | 249 | { |
Kojto | 124:2241e3a39974 | 250 | . = ALIGN(8); |
Kojto | 124:2241e3a39974 | 251 | . += STACK_SIZE; |
Kojto | 124:2241e3a39974 | 252 | } > m_data |
Kojto | 124:2241e3a39974 | 253 | |
Kojto | 124:2241e3a39974 | 254 | m_usb_bdt USB_RAM_START (NOLOAD) : |
Kojto | 124:2241e3a39974 | 255 | { |
Kojto | 124:2241e3a39974 | 256 | *(m_usb_bdt) |
Kojto | 124:2241e3a39974 | 257 | USB_RAM_BDT_END = .; |
Kojto | 124:2241e3a39974 | 258 | } |
Kojto | 124:2241e3a39974 | 259 | |
Kojto | 124:2241e3a39974 | 260 | m_usb_global USB_RAM_BDT_END (NOLOAD) : |
Kojto | 124:2241e3a39974 | 261 | { |
Kojto | 124:2241e3a39974 | 262 | *(m_usb_global) |
Kojto | 124:2241e3a39974 | 263 | } |
Kojto | 124:2241e3a39974 | 264 | |
Kojto | 124:2241e3a39974 | 265 | /* Initializes stack on the end of block */ |
Kojto | 124:2241e3a39974 | 266 | __StackTop = ORIGIN(m_data) + LENGTH(m_data); |
Kojto | 124:2241e3a39974 | 267 | __StackLimit = __StackTop - STACK_SIZE; |
Kojto | 124:2241e3a39974 | 268 | PROVIDE(__stack = __StackTop); |
Kojto | 124:2241e3a39974 | 269 | |
Kojto | 124:2241e3a39974 | 270 | .ARM.attributes 0 : { *(.ARM.attributes) } |
Kojto | 124:2241e3a39974 | 271 | |
Kojto | 124:2241e3a39974 | 272 | ASSERT(__StackLimit >= __HeapLimit, "region m_data overflowed with stack and heap") |
Kojto | 124:2241e3a39974 | 273 | } |
Kojto | 124:2241e3a39974 | 274 |