From b9b5c9a2b42bff25b32cb5a9321911bcf7386622 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 16 Sep 2026 22:18:07 -0400 Subject: [PATCH] Avoid reporting redundant errors on too-large fixed sect addr This would happen for any such section of non-zero size. --- src/link/section.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/link/section.cpp b/src/link/section.cpp index a516556b..f1659b54 100644 --- a/src/link/section.cpp +++ b/src/link/section.cpp @@ -322,9 +322,7 @@ static void doSanityChecks(Section §ion) { typeInfo.startAddr, typeInfo.endAddr() ); - } - - if (section.org + section.size > typeInfo.endAddr() + 1) { + } else if (section.org + section.size > typeInfo.endAddr() + 1) { error( "Section \"%s\"'s end address $%04x is greater than last address $%04x", section.name.c_str(),