]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lynx.cfg
Replace more linked lists by collections.
[cc65] / src / ld65 / cfg / lynx.cfg
1 SYMBOLS {
2     __STACKSIZE__: value = $0800, weak = yes; # 2k stack
3 }
4 MEMORY {
5     ZP:                define = yes, start = $0000, size = $0100;
6     HEADER: file = %O,               start = $0000, size = $000A;
7     RAM:    file = %O, define = yes, start = $0400, size = $BC38 - __STACKSIZE__;
8 }
9 SEGMENTS {
10     EXEHDR:   load = HEADER, type = ro;
11     STARTUP:  load = RAM,    type = ro;
12     LOWCODE:  load = RAM,    type = ro,                optional = yes;
13     INIT:     load = RAM,    type = ro,  define = yes, optional = yes;
14     CODE:     load = RAM,    type = ro;
15     RODATA:   load = RAM,    type = ro;
16     DATA:     load = RAM,    type = rw;
17     BSS:      load = RAM,    type = bss, define = yes;
18     ZEROPAGE: load = ZP,     type = zp;
19     EXTZP:    load = ZP,     type = zp,                optional = yes;
20     APPZP:    load = ZP,     type = zp,                optional = yes;
21 }
22 FEATURES {
23     CONDES: segment = INIT,
24             type    = constructor,
25             label   = __CONSTRUCTOR_TABLE__,
26             count   = __CONSTRUCTOR_COUNT__;
27     CONDES: segment = RODATA,
28             type    = destructor,
29             label   = __DESTRUCTOR_TABLE__,
30             count   = __DESTRUCTOR_COUNT__;
31     CONDES: segment = RODATA,
32             type    = interruptor,
33             label   = __INTERRUPTOR_TABLE__,
34             count   = __INTERRUPTOR_COUNT__;
35 }