}
MEMORY {
ZP: file = "", define = yes, start = __ZPSTART__, size = $001F;
- MAIN: file = %O, define = yes, start = %S, size = __STACKSTART__ - __STACKSIZE__;
+ MAIN: file = %O, start = %S, size = __STACKSTART__ - __STACKSIZE__ - %S;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import zerobss, _main
.import initlib, donelib
- .import __STACKSTART__, __STACKSIZE__ ; Linker generated
+ .import __STACKSTART__ ; Linker generated
.include "zeropage.inc"