This commit is contained in:
2025-02-17 23:46:39 +00:00
parent 113fed4ae1
commit e392f01c65
4 changed files with 48 additions and 27 deletions

View File

@@ -1,18 +1,25 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x00300000, LENGTH = 0x00100000 /* Runner */
RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 16K
}
SECTIONS
{
.magic_header : {
LONG(0x88DAD0F2) /* Magic header containing */
LONG(ADDR(.text)) /* Entry point */
LONG(0x88DAD0F3) /* Magic header containing */
LONG(ADDR(.magic_header)) /* Entry point */
} > RAM
.text : {
*(.text)
*(.rodata)
} > RAM
} > FLASH
.data : {
KEEP(*(.magic_number)) /* Ensure the magic number is kept */
LONG(ADDR(.text) + 4) /* Entry point */
*(.data)
} > RAM
}
}