WIP: Works.

But I don't like it much yet.
This commit is contained in:
2025-02-19 00:03:36 +00:00
parent e4d67cc355
commit 62fd3a825c
4 changed files with 19 additions and 13 deletions

View File

@@ -1,23 +1,26 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x00300000, LENGTH = 0x00100000 /* Runner */
RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 16K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
}
SECTIONS
{
.magic_header : {
.magic_header : ALIGN(4) {
LONG(0x88DAD0F2) /* Magic header containing */
LONG(ADDR(.text)) /* Entry point */
} > RAM
.text : {
.text : ALIGN(4) {
*(.text)
*(.rodata)
} > RAM
.data : {
.data : ALIGN(4) {
*(.data)
} > RAM
.bss : ALIGN(4) {
*(.bss)
*(COMMON)
} > RAM
}