Re: [cc65] How smart is the linker?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-12-16 18:23:56
On Wed, Dec 16, 2009 at 04:55:51PM +0100, Jakub wrote:
> How smart is the linker when it tries to align segments?

Actually not very smart. I have an idea that removes the need for an alignment
of the segments in the linker config (at least for binary output), but it
needs to be implemented.

> Can anyone describe the algorithm?

Easy: Sections are stored in the order in which they're found. If alignment is
necessary it is added when a section is encountered. Adding more intelligence
in this area is rather difficult, I think.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 16 18:24:05 2009

This archive was generated by hypermail 2.1.8 : 2009-12-16 18:24:07 CET