From 7521ae888a5a0f40273d554fb06355fc3572f57d Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Fri, 2 Feb 2018 14:46:57 +0100
Subject: [PATCH] Marked Apple II EXEHDR segment as optional.
The docs say "Use -D __EXEHDR__=0 to omit the header." so it should work without generating a linker warning.
---
cfg/apple2-hgr.cfg | 2 +-
cfg/apple2-overlay.cfg | 2 +-
cfg/apple2.cfg | 2 +-
cfg/apple2enh-hgr.cfg | 2 +-
cfg/apple2enh-overlay.cfg | 2 +-
cfg/apple2enh.cfg | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/cfg/apple2-hgr.cfg b/cfg/apple2-hgr.cfg
index 536491c67..b11dd12bc 100644
--- a/cfg/apple2-hgr.cfg
+++ b/cfg/apple2-hgr.cfg
@@ -19,7 +19,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro;
LOWCODE: load = MAIN, type = ro, optional = yes;
HGR: load = MAIN, type = rw, optional = yes, start = $2000;
diff --git a/cfg/apple2-overlay.cfg b/cfg/apple2-overlay.cfg
index e6a5ae25c..d5476d264 100644
--- a/cfg/apple2-overlay.cfg
+++ b/cfg/apple2-overlay.cfg
@@ -36,7 +36,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro, define = yes;
LOWCODE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
diff --git a/cfg/apple2.cfg b/cfg/apple2.cfg
index eba2a0e66..bbe45839d 100644
--- a/cfg/apple2.cfg
+++ b/cfg/apple2.cfg
@@ -19,7 +19,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro;
LOWCODE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
diff --git a/cfg/apple2enh-hgr.cfg b/cfg/apple2enh-hgr.cfg
index 536491c67..b11dd12bc 100644
--- a/cfg/apple2enh-hgr.cfg
+++ b/cfg/apple2enh-hgr.cfg
@@ -19,7 +19,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro;
LOWCODE: load = MAIN, type = ro, optional = yes;
HGR: load = MAIN, type = rw, optional = yes, start = $2000;
diff --git a/cfg/apple2enh-overlay.cfg b/cfg/apple2enh-overlay.cfg
index e6a5ae25c..d5476d264 100644
--- a/cfg/apple2enh-overlay.cfg
+++ b/cfg/apple2enh-overlay.cfg
@@ -36,7 +36,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro, define = yes;
LOWCODE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
diff --git a/cfg/apple2enh.cfg b/cfg/apple2enh.cfg
index eba2a0e66..bbe45839d 100644
--- a/cfg/apple2enh.cfg
+++ b/cfg/apple2enh.cfg
@@ -19,7 +19,7 @@ MEMORY {
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
- EXEHDR: load = HEADER, type = ro;
+ EXEHDR: load = HEADER, type = ro, optional = yes;
STARTUP: load = MAIN, type = ro;
LOWCODE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
--
2.39.5