Re: [cc65] ld65 does not generate map file on "Start address too low" error

From: Greg King <>
Date: 2015-10-21 13:42:46
On 2015-10-19 3:32 PM, Ullrich von Bassewitz wrote:
> On Mon, Oct 19, 2015 at 02:58:51PM -0400, Brad Smith wrote:
>>     ld65 will still generate a map file on a regular segment overflow; but, if
>>     you have another segment that follows the overflowed one with a start
>>     address, the "start address too low" error appears to prevent generation
>>     of the map file.
> The reason is that there is special code that handles memory area overflows,
> and outputs a short map file to help fix the problem. That is not the case
> when a "start address too low" error is triggered.
> It is rather difficult to proceed in case of errors, because the collected
> data is inconsistent, and might cause the linker to crash later.
> If you feel brave, you might try changing the error to a warning in "config.c"
> around line 1893; and, increment "Overflows" (as in the handling of "Memory
> area overflow" ca. line 1945). After a quick look at the code, I think that  it
> might work; but, as said before, you might have to fix problems with inconsistent
> data in other places.

I think that:

1. It's pointless to handle offsets/starts after an overflow.

2. The warning messages should tell us how far away the offset/start is 
from the current address.

3. The current address shouldn't be changed by a bad offset/start.
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Oct 21 14:42:55 2015

This archive was generated by hypermail 2.1.8 : 2015-10-21 14:42:58 CEST