]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/none.cfg
Move the constructor tables into the INIT segment
[cc65] / src / ld65 / cfg / none.cfg
1 MEMORY {
2     ZP:  start = $0000, size = $0001F, type = rw, define = yes;
3     RAM: start = %S,    size = $10000, file = %O;
4 }
5 SEGMENTS {
6     LOWCODE:  load = RAM, type = ro,               optional = yes;
7     INIT:     load = RAM, type = ro, define = yes, optional = yes;
8     CODE:     load = RAM, type = rw;
9     RODATA:   load = RAM, type = rw;
10     DATA:     load = RAM, type = rw;
11     BSS:      load = RAM, type = bss, define = yes;
12     ZEROPAGE: load = ZP,  type = zp;
13 }
14 FEATURES {
15     CONDES: segment = INIT,
16             type = constructor,
17             label = __CONSTRUCTOR_TABLE__,
18             count = __CONSTRUCTOR_COUNT__;
19     CONDES: segment = RODATA,
20             type = destructor,
21             label = __DESTRUCTOR_TABLE__,
22             count = __DESTRUCTOR_COUNT__;
23 }
24 SYMBOLS {
25     __STACKSIZE__ = $800;       # 2K stack
26 }