more atarixl linker cfg file cleanups; adapt atarixl-overlay.cfg

This commit is contained in:
Christian Groessler
2013-09-13 21:47:39 +02:00
parent 5caf6c8854
commit 85170998ad
5 changed files with 104 additions and 48 deletions

View File

@@ -5,6 +5,7 @@ FEATURES {
SYMBOLS {
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__RESERVED_MEMORY__: type = weak, value = $0000;
__STARTADDRESS__: type = export, value = %S;
syschk: type = import; # force inclusion of SYSCHK
sramprep: type = import; # force inclusion of SRPREP
}
@@ -17,12 +18,12 @@ MEMORY {
# "system check" load chunk
SYSCHKHDR: file = %O, start = $0000, size = $0004;
SYSCHK: file = %O, start = $2E00, size = $0300;
SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
SYSCHKTRL: file = %O, start = $0000, size = $0006;
# "shadow RAM preparation" load chunk
SRPREPHDR: file = %O, start = $0000, size = $0004;
SRPREP: file = %O, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
SRPREPCHNK: file = %O, define = yes, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
SRPREPTRL: file = %O, start = $0000, size = $0006;
# "main program" load chunk
@@ -42,21 +43,21 @@ MEMORY {
CHARGEN: file = "", define = yes, start = $D800, size = $0400;
# memory beneath the ROM
RAM_BELOW_ROM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
HIDDEN_RAM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
}
SEGMENTS {
EXEHDR: load = HEADER, type = ro;
SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
SYSCHK: load = SYSCHK, type = rw, define = yes, optional = yes;
SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
SRPREPHDR: load = SRPREPHDR, type = ro;
SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
LOWDATA: load = SRPREP, type = bss, define = yes; # " " " " " " " "
SRPREP: load = SRPREP, type = rw, define = yes;
SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
SAVEAREA: load = SRPREPCHNK, type = bss, define = yes; # shared btw. SRPREP and RAM
LOWDATA: load = SRPREPCHNK, type = bss, define = yes; # " " " " " " " "
SRPREP: load = SRPREPCHNK, type = rw, define = yes;
SHADOW_RAM: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
SRPREPTRL: load = SRPREPTRL, type = ro;
MAINHDR: load = MAINHDR, type = ro;