2000-10-31 18:08:25 +00:00
|
|
|
MEMORY {
|
2005-02-25 07:52:50 +00:00
|
|
|
ZP: start = $0000, size = $0001F, type = rw, define = yes;
|
|
|
|
RAM: start = %S, size = $10000, file = %O;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2005-02-25 07:52:50 +00:00
|
|
|
LOWCODE: load = RAM, type = ro, optional = yes;
|
|
|
|
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
|
|
|
CODE: load = RAM, type = rw;
|
|
|
|
RODATA: load = RAM, type = rw;
|
|
|
|
DATA: load = RAM, type = rw;
|
|
|
|
BSS: load = RAM, type = bss, define = yes;
|
2005-04-21 02:10:56 +00:00
|
|
|
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
|
2005-02-25 07:52:50 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
2000-11-20 23:04:30 +00:00
|
|
|
FEATURES {
|
2005-02-26 09:06:12 +00:00
|
|
|
CONDES: segment = INIT,
|
2000-11-20 23:04:30 +00:00
|
|
|
type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__;
|
|
|
|
CONDES: segment = RODATA,
|
|
|
|
type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__;
|
2005-04-21 02:10:56 +00:00
|
|
|
CONDES: type = interruptor,
|
|
|
|
segment = RODATA,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__;
|
2000-11-20 23:04:30 +00:00
|
|
|
}
|
2001-09-14 21:19:48 +00:00
|
|
|
SYMBOLS {
|
2009-10-01 17:00:10 +00:00
|
|
|
__STACKSIZE__: value = $0800, weak = yes; # 2k stack
|
2001-09-14 21:19:48 +00:00
|
|
|
}
|