]> git.sur5r.net Git - cc65/commitdiff
Added the first implementation of a linker config suited for c64 assembly
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 14 Nov 2010 13:11:09 +0000 (13:11 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 14 Nov 2010 13:11:09 +0000 (13:11 +0000)
programs.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4864 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/cfg/c64-asm.cfg [new file with mode: 0644]

diff --git a/src/ld65/cfg/c64-asm.cfg b/src/ld65/cfg/c64-asm.cfg
new file mode 100644 (file)
index 0000000..0527be5
--- /dev/null
@@ -0,0 +1,18 @@
+FEATURES {
+    STARTADDRESS: default = $0801;
+}
+SYMBOLS {
+    __LOADADDR__:  type = import;
+}
+MEMORY {
+    LOADADDR: file = %O, start = %S - 2, size = $0002;
+    RAM:      file = %O, start = %S,     size = $10000 - %S;
+}
+SEGMENTS {
+    LOADADDR: load = LOADADDR, type = ro;
+    EXEHDR:   load = RAM,      type = ro,  optional = yes;
+    CODE:     load = RAM,      type = rw,  optional = yes;
+    RODATA:   load = RAM,      type = ro,  optional = yes;
+    DATA:     load = RAM,      type = rw,  optional = yes;
+    BSS:      load = RAM,      type = bss, optional = yes;
+}