summaryrefslogtreecommitdiffstatshomepage
path: root/ports/stm32/boards/common_extratext_data_in_flash.ld
blob: db4306641b717ef2d2d2ec03e729748c75b9dc96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This linker script fragment is intended to be included in SECTIONS. */

/* For C++ exception handling */
.ARM :
{
    __exidx_start = .;
    *(.ARM.exidx*)
    __exidx_end = .;
} >FLASH_COMMON

/* Used by the start-up code to initialise data */
_sidata = LOADADDR(.data);

/* Initialised data section, start-up code will copy it from flash to RAM */
.data :
{
    . = ALIGN(4);
    _sdata = .;
    *(.data*)
    . = ALIGN(4);
    _edata = .;
} >RAM AT> FLASH_COMMON