From: Oliver Schmidt
Date: Tue, 15 Mar 2016 20:48:44 +0000 (+0100)
Subject: Fixed segment properties.
X-Git-Tag: V2.16~162
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4270b8a96c9cdad5c20cc9760070c23e5e07d9a1;p=cc65
Fixed segment properties.
The CBMx10 targets don't use the INIT segment in the startup code. So it may turn out to be not necessary at all for certain programs.
The CBMx10 targets don't need symbols for the ONCE segment. Likely their definition was a C&P error in the first place.
---
diff --git a/cfg/cbm510.cfg b/cfg/cbm510.cfg
index 5f73174f3..b4e228fdd 100644
--- a/cfg/cbm510.cfg
+++ b/cfg/cbm510.cfg
@@ -20,11 +20,11 @@ SEGMENTS {
PAGE2: load = PAGE2, type = rw;
PAGE3: load = PAGE3, type = rw;
LOWCODE: load = MAIN, type = ro, optional = yes;
- ONCE: load = MAIN, type = ro, define = yes, optional = yes;
+ ONCE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
RODATA: load = MAIN, type = ro;
DATA: load = MAIN, type = rw;
- INIT: load = MAIN, type = bss;
+ INIT: load = MAIN, type = bss, optional = yes;
BSS: load = MAIN, type = bss, define = yes;
}
FEATURES {
diff --git a/cfg/cbm610.cfg b/cfg/cbm610.cfg
index fb4349dba..431734cd2 100644
--- a/cfg/cbm610.cfg
+++ b/cfg/cbm610.cfg
@@ -17,11 +17,11 @@ SEGMENTS {
PAGE2: load = PAGE2, type = rw;
PAGE3: load = PAGE3, type = rw;
LOWCODE: load = MAIN, type = ro, optional = yes;
- ONCE: load = MAIN, type = ro, define = yes, optional = yes;
+ ONCE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
RODATA: load = MAIN, type = ro;
DATA: load = MAIN, type = rw;
- INIT: load = MAIN, type = bss;
+ INIT: load = MAIN, type = bss, optional = yes;
BSS: load = MAIN, type = bss, define = yes;
}
FEATURES {