]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lunix.cfg
Add the new OPTIONAL attribute to the LOWCODE segment.
[cc65] / src / ld65 / cfg / lunix.cfg
1 # ld65 Linker-configuration for LUnix, Next Generation.
2 MEMORY {
3     ZP: start = $80, size = $40;        # userzp buffer
4     RAM: start = %S, size = $7600;
5 }
6 SEGMENTS {
7     ZEROPAGE: load = ZP,  type = zp,  define = yes; # Pseudo-registers
8     STARTUP:  load = RAM, type = ro;    # First initiation code
9     LOWCODE:  load = RAM, type = ro, optional = yes; # Legacy from other platforms
10     CODE:     load = RAM, type = ro;    # Program
11     RODATA:   load = RAM, type = ro;    # Literals, constants
12     DATA:     load = RAM, type = rw;    # Initialized variables
13     BSS:      load = RAM, type = bss, define = yes; # Uninitialized variables
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 FILES {
26     %O: format = o65;
27 }
28 FORMATS {
29     o65: os = lunix, type = small,
30          export = main,         # Program entry-point
31          import = LUNIXKERNEL;  # Kernel entry-points
32 }
33 SYMBOLS {
34     __HEAPSIZE__  = $2000;      # 8k heap [temporary, until LUnix malloc() exists]
35     __STACKSIZE__ = $0400;      # 1k stack (do typical LUnix apps. need 2k?)
36 }