]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/geos.cfg
Made stacksize user-adjustable on the cmdline.
[cc65] / src / ld65 / cfg / geos.cfg
1 MEMORY {
2     ZP:     start = $0058, size = $0028, type = rw, define = yes;
3     HEADER: start = $0204, size = $01FC, file = %O;
4     RAM:    start = $0400, size = $5C00, define = yes, file = %O;
5 }
6 SEGMENTS {
7     HEADER:   load = HEADER, type = ro;
8     STARTUP:  load = RAM,    type = ro;
9     LOWCODE:  load = RAM,    type = ro,               optional = yes;
10     INIT:     load = RAM,    type = ro, define = yes, optional = yes;
11     CODE:     load = RAM,    type = ro;
12     RODATA:   load = RAM,    type = ro;
13     DATA:     load = RAM,    type = rw;
14     BSS:      load = RAM,    type = bss, define = yes;
15     HEAP:     load = RAM,    type = bss, optional = yes; # must sit just below stack
16     ZEROPAGE: load = ZP,     type = zp;
17     EXTZP:    load = ZP,     type = zp;
18 }
19 FEATURES {
20     CONDES: segment = INIT,
21             type = constructor,
22             label = __CONSTRUCTOR_TABLE__,
23             count = __CONSTRUCTOR_COUNT__;
24     CONDES: segment = RODATA,
25             type = destructor,
26             label = __DESTRUCTOR_TABLE__,
27             count = __DESTRUCTOR_COUNT__;
28     CONDES: type = interruptor,
29             segment = RODATA,
30             label = __INTERRUPTOR_TABLE__,
31             count = __INTERRUPTOR_COUNT__;
32 }
33 SYMBOLS {
34     __STACKSIZE__: value = $0400, weak = yes; # 1k stack
35 }