]> git.sur5r.net Git - cc65/blobdiff - cfg/atmos.cfg
ld65: implement '--allow-multiple-definition' command line parameter
[cc65] / cfg / atmos.cfg
index bb79a1e8a864e2ec67783c3099145d9ffc426e6b..35f184f4f9b09f0e6af43075d31eae96e63e42ed 100644 (file)
@@ -11,22 +11,22 @@ MEMORY {
     ZP:      file = "", define = yes, start = $00E2,            size = $001A;
     TAPEHDR: file = %O, type   = ro,  start = $0000,            size = $001F;
     BASHEAD: file = %O, define = yes, start = $0501,            size = $000D;
-    MAIN:    file = %O, define = yes, start = __BASHEAD_LAST__, size = __RAMEND__ - __MAIN_START__ - __STACKSIZE__;
+    MAIN:    file = %O, define = yes, start = __BASHEAD_LAST__, size = __RAMEND__ - __MAIN_START__;
+    BSS:     file = "",               start = __ONCE_RUN__,     size = __RAMEND__ - __STACKSIZE__ - __ONCE_RUN__;
 }
 SEGMENTS {
     ZEROPAGE: load = ZP,      type = zp;
     TAPEHDR:  load = TAPEHDR, type = ro;
-    BASHDR:   load = BASHEAD, type = ro,  define = yes, optional = yes;
+    BASHDR:   load = BASHEAD, type = ro,  optional = yes;
     STARTUP:  load = MAIN,    type = ro;
-    LOWCODE:  load = MAIN,    type = ro,                optional = yes;
+    LOWCODE:  load = MAIN,    type = ro,  optional = yes;
     CODE:     load = MAIN,    type = ro;
     RODATA:   load = MAIN,    type = ro;
-    ONCE:     load = MAIN,    type = ro,                optional = yes;
     DATA:     load = MAIN,    type = rw;
-    INIT:     load = MAIN,    type = rw,                optional = yes;
-    ZPSAVE1:  load = MAIN,    type = rw,  define = yes; # ZPSAVE1, ZPSAVE2 must be together
-    ZPSAVE2:  load = MAIN,    type = bss;               # see "libsrc/atmos/crt0.s"
-    BSS:      load = MAIN,    type = bss, define = yes;
+    INIT:     load = MAIN,    type = rw;
+    ONCE:     load = MAIN,    type = ro,  define   = yes;
+    BASTAIL:  load = MAIN,    type = ro,  optional = yes;
+    BSS:      load = BSS,     type = bss, define   = yes;
 }
 FEATURES {
     CONDES: type    = constructor,