summaryrefslogtreecommitdiff
path: root/ports/stm32/boards/common_text.ld
blob: d95467babc719a4cfb3f1ca68b9629d475829aae (plain)
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. */

/* The program code and other data goes into FLASH */
.text :
{
    . = ALIGN(4);
    *(.text*)          /* .text* sections (code) */
    *(.rodata*)        /* .rodata* sections (constants, strings, etc.) */
/*  *(.glue_7)   */    /* glue arm to thumb code */
/*  *(.glue_7t)  */    /* glue thumb to arm code */

    . = ALIGN(4);
    _etext = .;        /* define a global symbol at end of code */
} >FLASH_COMMON

/* Secure Gateway stubs */
.gnu.sgstubs :
{
    . = ALIGN(4);
    *(.gnu.sgstubs*)
    . = ALIGN(4);
} >FLASH_COMMON