From 263c9222ab17a6b499b797b64d0654b0ce29d172 Mon Sep 17 00:00:00 2001 From: Sanqui Date: Mon, 13 Mar 2017 17:08:27 +0100 Subject: [PATCH] Require all sections to be fixed when using overlay --- src/link/assign.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/link/assign.c b/src/link/assign.c index b07b061f..2a97687f 100644 --- a/src/link/assign.c +++ b/src/link/assign.c @@ -259,9 +259,8 @@ AssignFloatingBankSections(enum eSectionType type) SLONG org; if ((org = area_AllocAnyBank(pSection->nByteSize, pSection->nAlign, type)) != -1) { - if (options & OPT_OVERLAY && - (pSection->Type == SECT_ROMX || pSection->Type == SECT_ROM0)) { - errx(1, "All ROM sections must be fixed when using overlay"); + if (options & OPT_OVERLAY) { + errx(1, "All sections must be fixed when using overlay"); } pSection->nOrg = org & 0xFFFF; pSection->nBank = org >> 16; @@ -406,9 +405,8 @@ AssignSections(void) while (pSection) { if (pSection->oAssigned == 0 && pSection->nOrg != -1 && pSection->nBank == -1) { - if (options & OPT_OVERLAY && - (pSection->Type == SECT_ROMX || pSection->Type == SECT_ROM0)) { - errx(1, "All ROM sections must be fixed when using overlay"); + if (options & OPT_OVERLAY) { + errx(1, "All sections must be fixed when using overlay"); } switch (pSection->Type) { case SECT_ROMX: