Replaced builtin linker configs with ordinary .cfg files.

The benefits are:
- Independency of ld65 build from perl
- More transparent behaviour
This commit is contained in:
Oliver Schmidt
2013-04-09 23:09:46 +02:00
parent 4757642a12
commit 37c492b544
48 changed files with 52 additions and 424 deletions

21
cfg/module.cfg Normal file
View File

@@ -0,0 +1,21 @@
MEMORY {
ZP: file = %O, start = $0000, size = $0100, type = rw, define = yes;
COMBINED: file = %O, start = $0000, size = $FFFF;
}
SEGMENTS {
JUMPTABLE: load = COMBINED, type = ro;
INIT: load = COMBINED, type = ro, optional = yes;
CODE: load = COMBINED, type = ro;
RODATA: load = COMBINED, type = ro;
DATA: load = COMBINED, type = rw, define = yes;
BSS: load = COMBINED, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
EXTZP: load = ZP, type = zp;
}
FILES {
%O: format = o65;
}
FORMATS {
o65: os = cc65,
type = small;
}