From 262d11d2840dd9e599fa6bf7c419995d85e0e83d Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 5 Jan 2025 01:59:44 +0300 Subject: Initial commit --- rom.ld | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 rom.ld (limited to 'rom.ld') diff --git a/rom.ld b/rom.ld new file mode 100644 index 0000000..403a83d --- /dev/null +++ b/rom.ld @@ -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 +} -- cgit v1.2.3