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(),