]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/geos-cbm.cfg
Renamed geos.cfg to geos-cbm.cfg.
[cc65] / src / ld65 / cfg / geos-cbm.cfg
1 SYMBOLS {
2     __STACKSIZE__:   type = weak, value = $0400; # 1k stack
3     __OVERLAYSIZE__: type = weak, value = $0000; # no overlays by default
4     __OVERLAYADDR__: type = weak, value = $6000 - __OVERLAYSIZE__;
5 }
6 MEMORY {
7     CVT:    file = %O,    start = $0,              size = $80000;
8     ZP:     define = yes, start = $58,             size = $1A + $06;
9     VLIR0:  define = yes, start = $0400,           size = __OVERLAYADDR__ - __STACKSIZE__ - $0400;
10     VLIR1:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
11     VLIR2:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
12     VLIR3:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
13     VLIR4:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
14     VLIR5:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
15     VLIR6:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
16     VLIR7:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
17     VLIR8:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
18     VLIR9:  define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
19     VLIR10: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
20     VLIR11: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
21     VLIR12: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
22     VLIR13: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
23     VLIR14: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
24     VLIR15: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
25     VLIR16: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
26     VLIR17: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
27     VLIR18: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
28     VLIR19: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
29 }
30 SEGMENTS {
31     ZEROPAGE:  type = zp,  load = ZP;
32     EXTZP:     type = zp,  load = ZP;
33     DIRENTRY:  type = ro,                 load = CVT, align      = $FE;
34     FILEINFO:  type = ro,                 load = CVT, align      = $FE;
35     RECORDS:   type = ro,                 load = CVT, align      = $FE, optional = yes;
36     STARTUP:   type = ro,  run  = VLIR0,  load = CVT, align_load = $FE, define   = yes;
37     LOWCODE:   type = ro,  run  = VLIR0,  load = CVT,                   optional = yes;
38     INIT:      type = ro,  run  = VLIR0,  load = CVT, define     = yes, optional = yes;
39     CODE:      type = ro,  run  = VLIR0,  load = CVT;
40     RODATA:    type = ro,  run  = VLIR0,  load = CVT;
41     DATA:      type = rw,  run  = VLIR0,  load = CVT;
42     BSS:       type = bss, load = VLIR0,              define     = yes;
43     OVERLAY1:  type = ro,  run  = VLIR1,  load = CVT, align_load = $FE, optional = yes;
44     OVERLAY2:  type = ro,  run  = VLIR2,  load = CVT, align_load = $FE, optional = yes;
45     OVERLAY3:  type = ro,  run  = VLIR3,  load = CVT, align_load = $FE, optional = yes;
46     OVERLAY4:  type = ro,  run  = VLIR4,  load = CVT, align_load = $FE, optional = yes;
47     OVERLAY5:  type = ro,  run  = VLIR5,  load = CVT, align_load = $FE, optional = yes;
48     OVERLAY6:  type = ro,  run  = VLIR6,  load = CVT, align_load = $FE, optional = yes;
49     OVERLAY7:  type = ro,  run  = VLIR7,  load = CVT, align_load = $FE, optional = yes;
50     OVERLAY8:  type = ro,  run  = VLIR8,  load = CVT, align_load = $FE, optional = yes;
51     OVERLAY9:  type = ro,  run  = VLIR9,  load = CVT, align_load = $FE, optional = yes;
52     OVERLAY10: type = ro,  run  = VLIR10, load = CVT, align_load = $FE, optional = yes;
53     OVERLAY11: type = ro,  run  = VLIR11, load = CVT, align_load = $FE, optional = yes;
54     OVERLAY12: type = ro,  run  = VLIR12, load = CVT, align_load = $FE, optional = yes;
55     OVERLAY13: type = ro,  run  = VLIR13, load = CVT, align_load = $FE, optional = yes;
56     OVERLAY14: type = ro,  run  = VLIR14, load = CVT, align_load = $FE, optional = yes;
57     OVERLAY15: type = ro,  run  = VLIR15, load = CVT, align_load = $FE, optional = yes;
58     OVERLAY16: type = ro,  run  = VLIR16, load = CVT, align_load = $FE, optional = yes;
59     OVERLAY17: type = ro,  run  = VLIR17, load = CVT, align_load = $FE, optional = yes;
60     OVERLAY18: type = ro,  run  = VLIR18, load = CVT, align_load = $FE, optional = yes;
61     OVERLAY19: type = ro,  run  = VLIR19, load = CVT, align_load = $FE, optional = yes;
62 }
63 FEATURES {
64     CONDES: segment = INIT,
65             type    = constructor,
66             label   = __CONSTRUCTOR_TABLE__,
67             count   = __CONSTRUCTOR_COUNT__;
68     CONDES: segment = RODATA,
69             type    = destructor,
70             label   = __DESTRUCTOR_TABLE__,
71             count   = __DESTRUCTOR_COUNT__;
72     CONDES: segment = RODATA,
73             type    = interruptor,
74             label   = __INTERRUPTOR_TABLE__,
75             count   = __INTERRUPTOR_COUNT__;
76 }