Files
JIANT/firmware/loader/loader.ld
T
kurogedelic 5684e187b0 Felucca 0.8-beta source
Firmware, update loader, build tools, assets, web installer and editor,
host tests. Four tracks (three synth parts and a drum track), user presets
with live editor sync (protocol v2), editor protocol v3 (tracks), the
command-line installer tools/fm1_install.py.
2026-10-03 16:06:39 +09:00

22 lines
855 B
Plaintext

/* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
/* Felucca update loader: one RAM image at the address the SPL loads it to.
* Everything (code, constants, data) lives in RAM: the loader rewrites the
* flash, so nothing may execute from XIP. Stacks far above, clear of the
* update record (0x01C7FD88) and the crash record (0x01C7C000). */
MEMORY
{
LDR (rwx) : ORIGIN = 0x01C0A800, LENGTH = 0x14000
}
SECTIONS
{
.text : {
KEEP(*(.text.crt0)) *(.text*) *(.ram_text*) *(.rodata*) *(.data*) *(.sdata*)
. = ALIGN(4); _image_end = .;
} > LDR
.bss (NOLOAD) : { _bss_start = .; *(.bss*) *(.sbss*) *(COMMON) . = ALIGN(4); _bss_end = .; } > LDR
_stack_top = 0x01C70000;
_sstack_top = 0x01C72000;
/DISCARD/ : { *(.comment) *(.note*) *(.noinit*) }
}