]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/none.cfg
Have the callirq module export __CALLIRQ__ and changed all config files so
[cc65] / src / ld65 / cfg / none.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3 }
4 MEMORY {
5     ZP:  file = "", define = yes, start = $0000, size = $0001F;
6     RAM: file = %O,               start = %S,    size = $10000 - __STACKSIZE__;
7 }
8 SEGMENTS {
9     LOWCODE:  load = RAM, type = ro,                optional = yes;
10     INIT:     load = RAM, type = ro,  define = yes, optional = yes;
11     CODE:     load = RAM, type = rw;
12     RODATA:   load = RAM, type = rw;
13     DATA:     load = RAM, type = rw;
14     BSS:      load = RAM, type = bss, define = yes;
15     ZEROPAGE: load = ZP,  type = zp;
16 }
17 FEATURES {
18     CONDES: segment = INIT,
19             type    = constructor,
20             label   = __CONSTRUCTOR_TABLE__,
21             count   = __CONSTRUCTOR_COUNT__;
22     CONDES: segment = RODATA,
23             type    = destructor,
24             label   = __DESTRUCTOR_TABLE__,
25             count   = __DESTRUCTOR_COUNT__;
26     CONDES: segment = RODATA,
27             type    = interruptor,
28             label   = __INTERRUPTOR_TABLE__,
29             count   = __INTERRUPTOR_COUNT__,
30             import  = __CALLIRQ__;
31 }