Re: [cc65] ld65: Warning: Segment `CODE' in module `foo.o' requires larger alignment

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-08-17 09:41:26
Hi!

On Thu, Aug 16, 2012 at 03:48:04PM -0600, Egan Ford wrote:
> Read through the docs and I am still a bit stumped on what exactly this means.
>
> I have a few tables and one section of code that must be on a page
> boundary and I use .align 256 to enforce that and all it good as long
> as my .org is also on a page boundary.  But if it is not, well then my
> tables are off too.  So I get that it is relative to .org.  what is
> the best way to ensure that my tables always start on a page
> independent of .org and how to I get rid of this warning.  I am sure
> it is important.

Which version are you using? Version 2.13 and older snapshots required
alignments to be a power of two and the alignment of a memory area to be
larger or equal than the largest alignment of any section (part of a segment
that comes from an object file) contained within.

This limitation has been gone for a while, so my advice would be to try a
newer version.

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 Fri Aug 17 09:41:35 2012

This archive was generated by hypermail 2.1.8 : 2012-08-17 09:41:39 CEST