diff options
author | Oxore <oxore@protonmail.com> | 2025-01-05 01:59:44 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2025-01-05 02:01:06 +0300 |
commit | 262d11d2840dd9e599fa6bf7c419995d85e0e83d (patch) | |
tree | 58d6fae8bf1e88b1ec6dcb8a39102009e8247870 /rom.ld |
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 +} |