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

From: David Schmidt <david1attglobal.net>
Date: 2012-08-17 02:15:49
On 8/16/2012 5:48 PM, 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.

In general, you don't want to use .org - you want to do your memory 
mapping in your linker config file.  Each table could then be its own 
segment, and you define just where they go via the linker config.
----------------------------------------------------------------------
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 02:21:17 2012

This archive was generated by hypermail 2.1.8 : 2012-08-17 02:21:20 CEST