diff --git a/sw/kernel/link.ld b/sw/kernel/link.ld index 96adc89..d0f634b 100644 --- a/sw/kernel/link.ld +++ b/sw/kernel/link.ld @@ -2,16 +2,12 @@ MEMORY { ZP: start = $0, size = $100, type = rw, define = yes; SDRAM: start = $200, size = $7cf0, type = rw, define = yes; - ROM: start = $D000, size = $3000, type = rw, define = yes; -} - -FILES { - %O: format = bin; + ROM: start = $D000, size = $3000, type = rw, define = yes, file = %O; } SEGMENTS { ZEROPAGE: load = ZP, type = zp, define = yes; - DATA: load = SDRAM, type = rw, define = yes; + DATA: load = ROM, type = rw, define = yes, run = SDRAM; BSS: load = SDRAM, type = bss, define = yes; HEAP: load = SDRAM, type = bss, optional = yes; STARTUP: load = ROM, type = ro;