Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_K82F/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld@151:675da3299148, 2017-09-15 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri Sep 15 14:46:57 2017 +0100
- Revision:
- 151:675da3299148
- Parent:
- 140:97feb9bacc10
Release 151 of the mbed library.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| <> | 129:0ab6a29f35bf | 1 | /* |
| <> | 129:0ab6a29f35bf | 2 | ** ################################################################### |
| <> | 129:0ab6a29f35bf | 3 | ** Processors: MK82FN256CAx15 |
| <> | 129:0ab6a29f35bf | 4 | ** MK82FN256VDC15 |
| <> | 129:0ab6a29f35bf | 5 | ** MK82FN256VLL15 |
| <> | 129:0ab6a29f35bf | 6 | ** MK82FN256VLQ15 |
| <> | 129:0ab6a29f35bf | 7 | ** |
| <> | 129:0ab6a29f35bf | 8 | ** Compiler: GNU C Compiler |
| <> | 129:0ab6a29f35bf | 9 | ** Reference manual: K82P121M150SF5RM, Rev. 0, May 2015 |
| <> | 129:0ab6a29f35bf | 10 | ** Version: rev. 1.2, 2015-07-29 |
| <> | 129:0ab6a29f35bf | 11 | ** Build: b160613 |
| <> | 129:0ab6a29f35bf | 12 | ** |
| <> | 129:0ab6a29f35bf | 13 | ** Abstract: |
| <> | 129:0ab6a29f35bf | 14 | ** Linker file for the GNU C Compiler |
| <> | 129:0ab6a29f35bf | 15 | ** |
| <> | 129:0ab6a29f35bf | 16 | ** Copyright (c) 2016 Freescale Semiconductor, Inc. |
| <> | 129:0ab6a29f35bf | 17 | ** All rights reserved. |
| <> | 129:0ab6a29f35bf | 18 | ** |
| <> | 129:0ab6a29f35bf | 19 | ** Redistribution and use in source and binary forms, with or without modification, |
| <> | 129:0ab6a29f35bf | 20 | ** are permitted provided that the following conditions are met: |
| <> | 129:0ab6a29f35bf | 21 | ** |
| <> | 129:0ab6a29f35bf | 22 | ** o Redistributions of source code must retain the above copyright notice, this list |
| <> | 129:0ab6a29f35bf | 23 | ** of conditions and the following disclaimer. |
| <> | 129:0ab6a29f35bf | 24 | ** |
| <> | 129:0ab6a29f35bf | 25 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
| <> | 129:0ab6a29f35bf | 26 | ** list of conditions and the following disclaimer in the documentation and/or |
| <> | 129:0ab6a29f35bf | 27 | ** other materials provided with the distribution. |
| <> | 129:0ab6a29f35bf | 28 | ** |
| <> | 129:0ab6a29f35bf | 29 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
| <> | 129:0ab6a29f35bf | 30 | ** contributors may be used to endorse or promote products derived from this |
| <> | 129:0ab6a29f35bf | 31 | ** software without specific prior written permission. |
| <> | 129:0ab6a29f35bf | 32 | ** |
| <> | 129:0ab6a29f35bf | 33 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| <> | 129:0ab6a29f35bf | 34 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| <> | 129:0ab6a29f35bf | 35 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| <> | 129:0ab6a29f35bf | 36 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| <> | 129:0ab6a29f35bf | 37 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| <> | 129:0ab6a29f35bf | 38 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| <> | 129:0ab6a29f35bf | 39 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| <> | 129:0ab6a29f35bf | 40 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| <> | 129:0ab6a29f35bf | 41 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| <> | 129:0ab6a29f35bf | 42 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| <> | 129:0ab6a29f35bf | 43 | ** |
| <> | 129:0ab6a29f35bf | 44 | ** http: www.freescale.com |
| <> | 129:0ab6a29f35bf | 45 | ** mail: support@freescale.com |
| <> | 129:0ab6a29f35bf | 46 | ** |
| <> | 129:0ab6a29f35bf | 47 | ** ################################################################### |
| <> | 129:0ab6a29f35bf | 48 | */ |
| <> | 129:0ab6a29f35bf | 49 | |
| <> | 129:0ab6a29f35bf | 50 | /* Entry Point */ |
| <> | 129:0ab6a29f35bf | 51 | ENTRY(Reset_Handler) |
| <> | 129:0ab6a29f35bf | 52 | |
| <> | 129:0ab6a29f35bf | 53 | __ram_vector_table__ = 1; |
| <> | 129:0ab6a29f35bf | 54 | |
| <> | 140:97feb9bacc10 | 55 | /* With the RTOS in use, this does not affect the main stack size. The size of |
| <> | 140:97feb9bacc10 | 56 | * the stack where main runs is determined via the RTOS. */ |
| <> | 140:97feb9bacc10 | 57 | __stack_size__ = 0x400; |
| <> | 140:97feb9bacc10 | 58 | |
| <> | 140:97feb9bacc10 | 59 | /* This is the guaranteed minimum available heap size for an application. When |
| <> | 140:97feb9bacc10 | 60 | * uVisor is enabled, this is also the maximum available heap size. The |
| <> | 140:97feb9bacc10 | 61 | * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy |
| <> | 140:97feb9bacc10 | 62 | * heap and the page heap in uVisor applications. */ |
| <> | 140:97feb9bacc10 | 63 | __heap_size__ = 0x6000; |
| <> | 129:0ab6a29f35bf | 64 | |
| <> | 129:0ab6a29f35bf | 65 | HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x0400; |
| <> | 129:0ab6a29f35bf | 66 | STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400; |
| <> | 129:0ab6a29f35bf | 67 | M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x03C0 : 0x0; |
| <> | 129:0ab6a29f35bf | 68 | |
| <> | 129:0ab6a29f35bf | 69 | /* Specify the memory areas */ |
| <> | 129:0ab6a29f35bf | 70 | MEMORY |
| <> | 129:0ab6a29f35bf | 71 | { |
| <> | 129:0ab6a29f35bf | 72 | m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000003C0 |
| <> | 129:0ab6a29f35bf | 73 | m_bootloader_config (RX) : ORIGIN = 0x000003C0, LENGTH = 0x00000040 |
| <> | 129:0ab6a29f35bf | 74 | m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010 |
| <> | 129:0ab6a29f35bf | 75 | m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0 |
| <> | 129:0ab6a29f35bf | 76 | m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 |
| <> | 129:0ab6a29f35bf | 77 | m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000 |
| <> | 129:0ab6a29f35bf | 78 | } |
| <> | 129:0ab6a29f35bf | 79 | |
| <> | 129:0ab6a29f35bf | 80 | /* Define output sections */ |
| <> | 129:0ab6a29f35bf | 81 | SECTIONS |
| <> | 129:0ab6a29f35bf | 82 | { |
| <> | 129:0ab6a29f35bf | 83 | /* The startup code goes first into internal flash */ |
| <> | 129:0ab6a29f35bf | 84 | .interrupts : |
| <> | 129:0ab6a29f35bf | 85 | { |
| <> | 129:0ab6a29f35bf | 86 | __VECTOR_TABLE = .; |
| <> | 129:0ab6a29f35bf | 87 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 88 | KEEP(*(.isr_vector)) /* Startup code */ |
| <> | 129:0ab6a29f35bf | 89 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 90 | } > m_interrupts |
| <> | 129:0ab6a29f35bf | 91 | |
| <> | 129:0ab6a29f35bf | 92 | .bootloader_config : |
| <> | 129:0ab6a29f35bf | 93 | { |
| <> | 129:0ab6a29f35bf | 94 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 95 | KEEP(*(.BootloaderConfig)) /* Bootloader Configuration Area (BCA) */ |
| <> | 129:0ab6a29f35bf | 96 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 97 | } > m_bootloader_config |
| <> | 129:0ab6a29f35bf | 98 | |
| <> | 129:0ab6a29f35bf | 99 | .flash_config : |
| <> | 129:0ab6a29f35bf | 100 | { |
| <> | 129:0ab6a29f35bf | 101 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 102 | KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ |
| <> | 129:0ab6a29f35bf | 103 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 104 | } > m_flash_config |
| <> | 129:0ab6a29f35bf | 105 | |
| <> | 129:0ab6a29f35bf | 106 | /* The program code and other data goes into internal flash */ |
| <> | 129:0ab6a29f35bf | 107 | .text : |
| <> | 129:0ab6a29f35bf | 108 | { |
| <> | 129:0ab6a29f35bf | 109 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 110 | *(.text) /* .text sections (code) */ |
| <> | 129:0ab6a29f35bf | 111 | *(.text*) /* .text* sections (code) */ |
| <> | 129:0ab6a29f35bf | 112 | *(.rodata) /* .rodata sections (constants, strings, etc.) */ |
| <> | 129:0ab6a29f35bf | 113 | *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ |
| <> | 129:0ab6a29f35bf | 114 | *(.glue_7) /* glue arm to thumb code */ |
| <> | 129:0ab6a29f35bf | 115 | *(.glue_7t) /* glue thumb to arm code */ |
| <> | 129:0ab6a29f35bf | 116 | *(.eh_frame) |
| <> | 129:0ab6a29f35bf | 117 | KEEP (*(.init)) |
| <> | 129:0ab6a29f35bf | 118 | KEEP (*(.fini)) |
| <> | 129:0ab6a29f35bf | 119 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 120 | } > m_text |
| <> | 129:0ab6a29f35bf | 121 | |
| <> | 129:0ab6a29f35bf | 122 | .ARM.extab : |
| <> | 129:0ab6a29f35bf | 123 | { |
| <> | 129:0ab6a29f35bf | 124 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
| <> | 129:0ab6a29f35bf | 125 | } > m_text |
| <> | 129:0ab6a29f35bf | 126 | |
| <> | 129:0ab6a29f35bf | 127 | .ARM : |
| <> | 129:0ab6a29f35bf | 128 | { |
| <> | 129:0ab6a29f35bf | 129 | __exidx_start = .; |
| <> | 129:0ab6a29f35bf | 130 | *(.ARM.exidx*) |
| <> | 129:0ab6a29f35bf | 131 | __exidx_end = .; |
| <> | 129:0ab6a29f35bf | 132 | } > m_text |
| <> | 129:0ab6a29f35bf | 133 | |
| <> | 129:0ab6a29f35bf | 134 | .ctors : |
| <> | 129:0ab6a29f35bf | 135 | { |
| <> | 129:0ab6a29f35bf | 136 | __CTOR_LIST__ = .; |
| <> | 129:0ab6a29f35bf | 137 | /* gcc uses crtbegin.o to find the start of |
| <> | 129:0ab6a29f35bf | 138 | the constructors, so we make sure it is |
| <> | 129:0ab6a29f35bf | 139 | first. Because this is a wildcard, it |
| <> | 129:0ab6a29f35bf | 140 | doesn't matter if the user does not |
| <> | 129:0ab6a29f35bf | 141 | actually link against crtbegin.o; the |
| <> | 129:0ab6a29f35bf | 142 | linker won't look for a file to match a |
| <> | 129:0ab6a29f35bf | 143 | wildcard. The wildcard also means that it |
| <> | 129:0ab6a29f35bf | 144 | doesn't matter which directory crtbegin.o |
| <> | 129:0ab6a29f35bf | 145 | is in. */ |
| <> | 129:0ab6a29f35bf | 146 | KEEP (*crtbegin.o(.ctors)) |
| <> | 129:0ab6a29f35bf | 147 | KEEP (*crtbegin?.o(.ctors)) |
| <> | 129:0ab6a29f35bf | 148 | /* We don't want to include the .ctor section from |
| <> | 129:0ab6a29f35bf | 149 | from the crtend.o file until after the sorted ctors. |
| <> | 129:0ab6a29f35bf | 150 | The .ctor section from the crtend file contains the |
| <> | 129:0ab6a29f35bf | 151 | end of ctors marker and it must be last */ |
| <> | 129:0ab6a29f35bf | 152 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)) |
| <> | 129:0ab6a29f35bf | 153 | KEEP (*(SORT(.ctors.*))) |
| <> | 129:0ab6a29f35bf | 154 | KEEP (*(.ctors)) |
| <> | 129:0ab6a29f35bf | 155 | __CTOR_END__ = .; |
| <> | 129:0ab6a29f35bf | 156 | } > m_text |
| <> | 129:0ab6a29f35bf | 157 | |
| <> | 129:0ab6a29f35bf | 158 | .dtors : |
| <> | 129:0ab6a29f35bf | 159 | { |
| <> | 129:0ab6a29f35bf | 160 | __DTOR_LIST__ = .; |
| <> | 129:0ab6a29f35bf | 161 | KEEP (*crtbegin.o(.dtors)) |
| <> | 129:0ab6a29f35bf | 162 | KEEP (*crtbegin?.o(.dtors)) |
| <> | 129:0ab6a29f35bf | 163 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)) |
| <> | 129:0ab6a29f35bf | 164 | KEEP (*(SORT(.dtors.*))) |
| <> | 129:0ab6a29f35bf | 165 | KEEP (*(.dtors)) |
| <> | 129:0ab6a29f35bf | 166 | __DTOR_END__ = .; |
| <> | 129:0ab6a29f35bf | 167 | } > m_text |
| <> | 129:0ab6a29f35bf | 168 | |
| <> | 129:0ab6a29f35bf | 169 | .preinit_array : |
| <> | 129:0ab6a29f35bf | 170 | { |
| <> | 129:0ab6a29f35bf | 171 | PROVIDE_HIDDEN (__preinit_array_start = .); |
| <> | 129:0ab6a29f35bf | 172 | KEEP (*(.preinit_array*)) |
| <> | 129:0ab6a29f35bf | 173 | PROVIDE_HIDDEN (__preinit_array_end = .); |
| <> | 129:0ab6a29f35bf | 174 | } > m_text |
| <> | 129:0ab6a29f35bf | 175 | |
| <> | 129:0ab6a29f35bf | 176 | .init_array : |
| <> | 129:0ab6a29f35bf | 177 | { |
| <> | 129:0ab6a29f35bf | 178 | PROVIDE_HIDDEN (__init_array_start = .); |
| <> | 129:0ab6a29f35bf | 179 | KEEP (*(SORT(.init_array.*))) |
| <> | 129:0ab6a29f35bf | 180 | KEEP (*(.init_array*)) |
| <> | 129:0ab6a29f35bf | 181 | PROVIDE_HIDDEN (__init_array_end = .); |
| <> | 129:0ab6a29f35bf | 182 | } > m_text |
| <> | 129:0ab6a29f35bf | 183 | |
| <> | 129:0ab6a29f35bf | 184 | .fini_array : |
| <> | 129:0ab6a29f35bf | 185 | { |
| <> | 129:0ab6a29f35bf | 186 | PROVIDE_HIDDEN (__fini_array_start = .); |
| <> | 129:0ab6a29f35bf | 187 | KEEP (*(SORT(.fini_array.*))) |
| <> | 129:0ab6a29f35bf | 188 | KEEP (*(.fini_array*)) |
| <> | 129:0ab6a29f35bf | 189 | PROVIDE_HIDDEN (__fini_array_end = .); |
| <> | 129:0ab6a29f35bf | 190 | } > m_text |
| <> | 129:0ab6a29f35bf | 191 | |
| <> | 129:0ab6a29f35bf | 192 | __etext = .; /* define a global symbol at end of code */ |
| <> | 129:0ab6a29f35bf | 193 | __DATA_ROM = .; /* Symbol is used by startup for data initialization */ |
| <> | 129:0ab6a29f35bf | 194 | |
| <> | 129:0ab6a29f35bf | 195 | .interrupts_ram : |
| <> | 129:0ab6a29f35bf | 196 | { |
| <> | 129:0ab6a29f35bf | 197 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 198 | __VECTOR_RAM__ = .; |
| <> | 129:0ab6a29f35bf | 199 | __interrupts_ram_start__ = .; /* Create a global symbol at data start */ |
| <> | 129:0ab6a29f35bf | 200 | *(.m_interrupts_ram) /* This is a user defined section */ |
| <> | 129:0ab6a29f35bf | 201 | . += M_VECTOR_RAM_SIZE; |
| <> | 129:0ab6a29f35bf | 202 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 203 | __interrupts_ram_end__ = .; /* Define a global symbol at data end */ |
| <> | 129:0ab6a29f35bf | 204 | } > m_data |
| <> | 129:0ab6a29f35bf | 205 | |
| <> | 129:0ab6a29f35bf | 206 | __VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts); |
| <> | 129:0ab6a29f35bf | 207 | __RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0; |
| <> | 129:0ab6a29f35bf | 208 | |
| <> | 129:0ab6a29f35bf | 209 | .data : AT(__DATA_ROM) |
| <> | 129:0ab6a29f35bf | 210 | { |
| <> | 129:0ab6a29f35bf | 211 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 212 | __DATA_RAM = .; |
| <> | 129:0ab6a29f35bf | 213 | __data_start__ = .; /* create a global symbol at data start */ |
| <> | 129:0ab6a29f35bf | 214 | *(.data) /* .data sections */ |
| <> | 129:0ab6a29f35bf | 215 | *(.data*) /* .data* sections */ |
| <> | 129:0ab6a29f35bf | 216 | KEEP(*(.jcr*)) |
| <> | 129:0ab6a29f35bf | 217 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 218 | __data_end__ = .; /* define a global symbol at data end */ |
| <> | 129:0ab6a29f35bf | 219 | } > m_data |
| <> | 129:0ab6a29f35bf | 220 | |
| <> | 129:0ab6a29f35bf | 221 | __DATA_END = __DATA_ROM + (__data_end__ - __data_start__); |
| <> | 129:0ab6a29f35bf | 222 | text_end = ORIGIN(m_text) + LENGTH(m_text); |
| <> | 129:0ab6a29f35bf | 223 | ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data") |
| <> | 129:0ab6a29f35bf | 224 | |
| <> | 129:0ab6a29f35bf | 225 | USB_RAM_GAP = DEFINED(__usb_ram_size__) ? __usb_ram_size__ : 0x00; |
| <> | 129:0ab6a29f35bf | 226 | /* Uninitialized data section */ |
| <> | 129:0ab6a29f35bf | 227 | .bss : |
| <> | 129:0ab6a29f35bf | 228 | { |
| <> | 129:0ab6a29f35bf | 229 | /* This is used by the startup in order to initialize the .bss section */ |
| <> | 129:0ab6a29f35bf | 230 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 231 | __START_BSS = .; |
| <> | 129:0ab6a29f35bf | 232 | __bss_start__ = .; |
| <> | 129:0ab6a29f35bf | 233 | *(.bss) |
| <> | 129:0ab6a29f35bf | 234 | *(.bss*) |
| <> | 129:0ab6a29f35bf | 235 | . = ALIGN(512); |
| <> | 129:0ab6a29f35bf | 236 | USB_RAM_START = .; |
| <> | 129:0ab6a29f35bf | 237 | . += USB_RAM_GAP; |
| <> | 129:0ab6a29f35bf | 238 | *(COMMON) |
| <> | 129:0ab6a29f35bf | 239 | . = ALIGN(4); |
| <> | 129:0ab6a29f35bf | 240 | __bss_end__ = .; |
| <> | 129:0ab6a29f35bf | 241 | __END_BSS = .; |
| <> | 129:0ab6a29f35bf | 242 | } > m_data |
| <> | 129:0ab6a29f35bf | 243 | |
| <> | 129:0ab6a29f35bf | 244 | .heap : |
| <> | 129:0ab6a29f35bf | 245 | { |
| <> | 129:0ab6a29f35bf | 246 | . = ALIGN(8); |
| <> | 129:0ab6a29f35bf | 247 | __end__ = .; |
| <> | 129:0ab6a29f35bf | 248 | PROVIDE(end = .); |
| <> | 129:0ab6a29f35bf | 249 | __HeapBase = .; |
| <> | 129:0ab6a29f35bf | 250 | . += HEAP_SIZE; |
| <> | 129:0ab6a29f35bf | 251 | __HeapLimit = .; |
| <> | 129:0ab6a29f35bf | 252 | __heap_limit = .; /* Add for _sbrk */ |
| <> | 129:0ab6a29f35bf | 253 | } > m_data_2 |
| <> | 129:0ab6a29f35bf | 254 | |
| <> | 129:0ab6a29f35bf | 255 | .stack : |
| <> | 129:0ab6a29f35bf | 256 | { |
| <> | 129:0ab6a29f35bf | 257 | . = ALIGN(8); |
| <> | 129:0ab6a29f35bf | 258 | . += STACK_SIZE; |
| <> | 129:0ab6a29f35bf | 259 | } > m_data_2 |
| <> | 129:0ab6a29f35bf | 260 | |
| <> | 129:0ab6a29f35bf | 261 | m_usb_bdt USB_RAM_START (NOLOAD) : |
| <> | 129:0ab6a29f35bf | 262 | { |
| <> | 129:0ab6a29f35bf | 263 | *(m_usb_bdt) |
| <> | 129:0ab6a29f35bf | 264 | USB_RAM_BDT_END = .; |
| <> | 129:0ab6a29f35bf | 265 | } |
| <> | 129:0ab6a29f35bf | 266 | |
| <> | 129:0ab6a29f35bf | 267 | m_usb_global USB_RAM_BDT_END (NOLOAD) : |
| <> | 129:0ab6a29f35bf | 268 | { |
| <> | 129:0ab6a29f35bf | 269 | *(m_usb_global) |
| <> | 129:0ab6a29f35bf | 270 | } |
| <> | 129:0ab6a29f35bf | 271 | |
| <> | 129:0ab6a29f35bf | 272 | /* Initializes stack on the end of block */ |
| <> | 129:0ab6a29f35bf | 273 | __StackTop = ORIGIN(m_data_2) + LENGTH(m_data_2); |
| <> | 129:0ab6a29f35bf | 274 | __StackLimit = __StackTop - STACK_SIZE; |
| <> | 129:0ab6a29f35bf | 275 | PROVIDE(__stack = __StackTop); |
| <> | 129:0ab6a29f35bf | 276 | |
| <> | 129:0ab6a29f35bf | 277 | .ARM.attributes 0 : { *(.ARM.attributes) } |
| <> | 129:0ab6a29f35bf | 278 | |
| <> | 129:0ab6a29f35bf | 279 | ASSERT(__StackLimit >= __HeapLimit, "region m_data_2 overflowed with stack and heap") |
| <> | 129:0ab6a29f35bf | 280 | } |
| <> | 129:0ab6a29f35bf | 281 |


