From: Oliver Schmidt
Date: Thu, 27 Jun 2013 22:30:24 +0000 (+0200)
Subject: Made EXTZP segment option for modules.
X-Git-Tag: V2.15~256
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5edcd639e0f3f933550739daf59f520dd0fafd6d;p=cc65
Made EXTZP segment option for modules.
This allows to remove the "add empty EXTZP segement to avoid warnings"
approach.
---
diff --git a/cfg/module.cfg b/cfg/module.cfg
index edc87fb17..349197eb0 100644
--- a/cfg/module.cfg
+++ b/cfg/module.cfg
@@ -10,7 +10,7 @@ SEGMENTS {
DATA: load = COMBINED, type = rw, define = yes;
BSS: load = COMBINED, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
- EXTZP: load = ZP, type = zp;
+ EXTZP: load = ZP, type = zp, optional = yes;
}
FILES {
%O: format = o65;
diff --git a/libsrc/runtime/zeropage.s b/libsrc/runtime/zeropage.s
index b4af44e33..2bbe7ceee 100644
--- a/libsrc/runtime/zeropage.s
+++ b/libsrc/runtime/zeropage.s
@@ -22,10 +22,3 @@ tmp2: .res 1
tmp3: .res 1
tmp4: .res 1
regbank: .res regbanksize ; Register bank
-
-; Add an empty EXTZP zeropage segment to avoid linker warnings that this
-; segment does not exist (it does not exist in most builtin linker configs
-; but is used when linking modules).
-
-.segment "EXTZP" : zeropage
-