summaryrefslogtreecommitdiff
path: root/rom.ld
blob: 403a83d6aed268053fc662c3f6727ad7b7783947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: Unlicense
 */

MEMORY {
    ROM(rx) : ORIGIN = 0x08000000, LENGTH = 4M
}

SECTIONS {
    . = ORIGIN(ROM);
    .text : {
        KEEP(*(.rom_header))
        KEEP(*(.text))
        . = ALIGN(4);
        *(.text*)
        . = ALIGN(4);
        KEEP(*(.rodata))
        *(.rodata*)
        . = ALIGN(4);
    } >ROM
}