]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lynx.cfg
Made stacksize user-adjustable on the cmdline.
[cc65] / src / ld65 / cfg / lynx.cfg
1 MEMORY {
2     ZP:     start = $0000, size = $0100, type = rw, define = yes;
3     HEADER: start = $0000, size = $000A, file = %O;
4     RAM:    start = $0400, size = $BC38, define = yes, file = %O;
5 }
6 SEGMENTS {
7     EXEHDR:   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,               optional = yes;
18     APPZP:    load = ZP,     type = zp,               optional = yes;
19 }
20 FEATURES {
21     CONDES: segment = INIT,
22             type = constructor,
23             label = __CONSTRUCTOR_TABLE__,
24             count = __CONSTRUCTOR_COUNT__;
25     CONDES: segment = RODATA,
26             type = destructor,
27             label = __DESTRUCTOR_TABLE__,
28             count = __DESTRUCTOR_COUNT__;
29     CONDES: segment = RODATA,
30             type = interruptor,
31             label = __INTERRUPTOR_TABLE__,
32             count = __INTERRUPTOR_COUNT__;
33 }
34 SYMBOLS {
35     __STACKSIZE__: value = $0800, weak = yes; # 2k stack
36 }