Files
cc65/src/ld65/cfg/lunix.cfg
cuz efc905a39e Type of LOWCODE was wrong. Cleanup.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1889 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-01-05 21:08:58 +00:00

37 lines
1.2 KiB
INI

# ld65 Linker-configuration for LUnix, Next Generation.
MEMORY {
ZP: start = $80, size = $40; # userzp buffer
RAM: start = %S, size = $7600;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers
STARTUP: load = RAM, type = ro; # First initiation code
LOWCODE: load = RAM, type = ro; # Legacy from other platforms
CODE: load = RAM, type = ro; # Program
RODATA: load = RAM, type = ro; # Literals, constants
DATA: load = RAM, type = rw; # Initialized variables
BSS: load = RAM, type = bss, define = yes; # Uninitialized variables
}
FEATURES {
CONDES: segment = RODATA,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = RODATA,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
}
FILES {
%O: format = o65;
}
FORMATS {
o65: os = lunix, type = small,
export = main, # Program entry-point
import = LUNIXKERNEL; # Kernel entry-points
}
SYMBOLS {
__HEAPSIZE__ = $2000; # 8k heap [temporary, until LUnix malloc() exists]
__STACKSIZE__ = $0400; # 1k stack (do typical LUnix apps. need 2k?)
}