diff options
Diffstat (limited to 'rom.ld')
-rw-r--r-- | rom.ld | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,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 +} |