]> git.sur5r.net Git - cc65/blobdiff - src/ld65/cfg/bbc.cfg
Better handling of imports in the ExprNode structure.
[cc65] / src / ld65 / cfg / bbc.cfg
index 7b19096ee1f68b2cca6f24641c1f3261cd8b02df..f0d608f24a8da08fd13300d3f81012b113095429 100644 (file)
@@ -1,23 +1,31 @@
+SYMBOLS {
+    __STACKSIZE__: value = $0800, weak = yes; # 2k stack
+}
 MEMORY {
-    ZP: start = $70, size = $20, type = rw;
-    RAM: start = $E00, size = $7200, file = %O;
+    ZP:  define = yes, start = $0070, size = $0020;
+    RAM: file = %O,    start = $0E00, size = $7200 - __STACKSIZE__;
 }
 SEGMENTS {
-    CODE: load = RAM, type = wprot;
-    RODATA: load = RAM, type = wprot;
-    DATA: load = RAM, type = rw;
-    BSS: load = RAM, type = bss, define = yes;
-    ZEROPAGE: load = ZP, type = zp;
+    STARTUP:  load = RAM, type = ro,  define = yes;
+    LOWCODE:  load = RAM, type = ro,                optional = yes;
+    INIT:     load = RAM, type = ro,  define = yes, optional = yes;
+    CODE:     load = RAM, type = ro;
+    RODATA:   load = RAM, type = ro;
+    DATA:     load = RAM, type = rw;
+    BSS:      load = RAM, type = bss, define = yes;
+    ZEROPAGE: load = ZP,  type = zp;
 }
 FEATURES {
+    CONDES: segment = INIT,
+           type    = constructor,
+           label   = __CONSTRUCTOR_TABLE__,
+           count   = __CONSTRUCTOR_COUNT__;
     CONDES: segment = RODATA,
-           type = constructor,
-           label = __CONSTRUCTOR_TABLE__,
-           count = __CONSTRUCTOR_COUNT__;
+           type    = destructor,
+           label   = __DESTRUCTOR_TABLE__,
+           count   = __DESTRUCTOR_COUNT__;
     CONDES: segment = RODATA,
-           type = destructor,
-           label = __DESTRUCTOR_TABLE__,
-           count = __DESTRUCTOR_COUNT__;
+           type    = interruptor,
+           label   = __INTERRUPTOR_TABLE__,
+           count   = __INTERRUPTOR_COUNT__;
 }
-
-