2002-12-13 10:47:03 +00:00
|
|
|
# ld65 Linker-configuration for LUnix, Next Generation.
|
2000-10-31 18:08:25 +00:00
|
|
|
MEMORY {
|
2005-02-25 07:52:50 +00:00
|
|
|
ZP: start = $0080, size = $0040; # userzp buffer
|
|
|
|
RAM: start = %S, size = $7600;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2002-12-13 10:47:03 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers
|
2003-01-05 21:08:58 +00:00
|
|
|
STARTUP: load = RAM, type = ro; # First initiation code
|
2003-05-22 22:32:33 +00:00
|
|
|
LOWCODE: load = RAM, type = ro, optional = yes; # Legacy from other platforms
|
2005-02-25 07:52:50 +00:00
|
|
|
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
2003-01-05 21:08:58 +00:00
|
|
|
CODE: load = RAM, type = ro; # Program
|
|
|
|
RODATA: load = RAM, type = ro; # Literals, constants
|
2003-05-22 22:32:33 +00:00
|
|
|
DATA: load = RAM, type = rw; # Initialized variables
|
2003-01-05 21:08:58 +00:00
|
|
|
BSS: load = RAM, type = bss, define = yes; # Uninitialized variables
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
2000-11-20 23:04:30 +00:00
|
|
|
FEATURES {
|
|
|
|
CONDES: segment = RODATA,
|
|
|
|
type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__;
|
|
|
|
CONDES: segment = RODATA,
|
|
|
|
type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__;
|
|
|
|
}
|
2000-10-31 18:08:25 +00:00
|
|
|
FILES {
|
|
|
|
%O: format = o65;
|
|
|
|
}
|
|
|
|
FORMATS {
|
2002-12-13 10:47:03 +00:00
|
|
|
o65: os = lunix, type = small,
|
|
|
|
export = main, # Program entry-point
|
|
|
|
import = LUNIXKERNEL; # Kernel entry-points
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
2001-03-10 14:24:58 +00:00
|
|
|
SYMBOLS {
|
2002-12-13 10:47:03 +00:00
|
|
|
__HEAPSIZE__ = $2000; # 8k heap [temporary, until LUnix malloc() exists]
|
|
|
|
__STACKSIZE__ = $0400; # 1k stack (do typical LUnix apps. need 2k?)
|
2001-03-10 14:24:58 +00:00
|
|
|
}
|