Changed the way that ld65 handles bad offset/start segment attributes, and reports memory area overflows.

1. Offset/start attributes within a memory area are ignored after an overflow.
2. If a previous segment ends past an offset/start address, then that address is not used.
3. Short map files were generated for memory overflows; now, they are generated for bad offset/start addresses, too.
This commit is contained in:
Greg King
2015-10-22 19:24:08 -04:00
parent f4335eca87
commit 8e9bf4d419
2 changed files with 37 additions and 39 deletions

View File

@@ -819,8 +819,8 @@ int main (int argc, char* argv [])
if (MapFileName) {
CreateMapFile (SHORT_MAPFILE);
}
Error ("Cannot generate output due to memory area overflow%s",
(MemoryAreaOverflows > 1)? "s" : "");
Error ("Cannot generate most of the files due to memory area overflow%c",
(MemoryAreaOverflows > 1) ? 's' : ' ');
}
/* Create the output file */