]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/bbc.cfg
Added the new INIT segment to all configs and adjusted formatting.
[cc65] / src / ld65 / cfg / bbc.cfg
1 MEMORY {
2     ZP:  start = $0070, size = $0020, type = rw, define = yes;
3     RAM: start = $0E00, size = $7200, file = %O;
4 }
5 SEGMENTS {
6     STARTUP:  load = RAM, type = ro, define = yes;
7     LOWCODE:  load = RAM, type = ro,               optional = yes;
8     INIT:     load = RAM, type = ro, define = yes, optional = yes;
9     CODE:     load = RAM, type = ro;
10     RODATA:   load = RAM, type = ro;
11     DATA:     load = RAM, type = rw;
12     BSS:      load = RAM, type = bss, define = yes;
13     ZEROPAGE: load = ZP,  type = zp;
14 }
15 FEATURES {
16     CONDES: segment = RODATA,
17             type = constructor,
18             label = __CONSTRUCTOR_TABLE__,
19             count = __CONSTRUCTOR_COUNT__;
20     CONDES: segment = RODATA,
21             type = destructor,
22             label = __DESTRUCTOR_TABLE__,
23             count = __DESTRUCTOR_COUNT__;
24 }
25 SYMBOLS {
26     __STACKSIZE__ = $800;       # 2K stack
27 }
28
29