]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/atari.cfg
add "define=yes" for CODE segment
[cc65] / src / ld65 / cfg / atari.cfg
1 FEATURES {
2     STARTADDRESS: default = $2E00;
3 }
4 SYMBOLS {
5     __STACKSIZE__       = $800;         # 2K stack
6     __RESERVED_MEMORY__: value = $0, weak = yes;
7 }
8 MEMORY {
9     ZP:      start = $0082, size = $007E, type = rw, define = yes;
10     HEADER:  start = $0000, size = $0006, file = %O;
11     RAM:     start = %S,    size = $BC20 - __STACKSIZE__ - %S, file = %O;
12     TRAILER: start = $0000, size = $0006, file = %O;
13 }
14 SEGMENTS {
15     EXEHDR:   load = HEADER,  type = ro;
16     LOWCODE:  load = RAM,     type = ro, define = yes, optional = yes;
17     INIT:     load = RAM,     type = ro,               optional = yes;
18     CODE:     load = RAM,     type = ro, define = yes;
19     RODATA:   load = RAM,     type = ro;
20     DATA:     load = RAM,     type = rw;
21     BSS:      load = RAM,     type = bss, define = yes;
22     HEAP:     load = RAM,     type = bss, optional = yes; # must sit just below stack
23     ZEROPAGE: load = ZP,      type = zp;
24     EXTZP:    load = ZP,      type = zp,               optional = yes;
25     AUTOSTRT: load = TRAILER, type = ro;
26 }
27 FEATURES {
28     CONDES: segment = INIT,
29             type = constructor,
30             label = __CONSTRUCTOR_TABLE__,
31             count = __CONSTRUCTOR_COUNT__;
32     CONDES: segment = RODATA,
33             type = destructor,
34             label = __DESTRUCTOR_TABLE__,
35             count = __DESTRUCTOR_COUNT__;
36     CONDES: type = interruptor,
37             segment = RODATA,
38             label = __INTERRUPTOR_TABLE__,
39             count = __INTERRUPTOR_COUNT__;
40 }