Avoid reporting redundant errors on too-large fixed sect addr

This would happen for any such section of non-zero size.
This commit is contained in:
ISSOtm
2026-09-17 10:17:26 -04:00
committed by Rangi
parent aa657cd481
commit b9b5c9a2b4
+1 -3
View File
@@ -322,9 +322,7 @@ static void doSanityChecks(Section &section) {
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(),