Re: [cc65] rodata alignment independent from ld.cfg

From: Gábor Lénárt <lgb1lgb.hu>
Date: 2011-01-15 10:48:58
On Fri, Jan 14, 2011 at 08:26:21PM +0100, Ullrich von Bassewitz wrote:
> 
> On Fri, Jan 14, 2011 at 08:15:37PM +0100, Ullrich von Bassewitz wrote:
> >
> >         .align  4, $90
> 
> Make that
> 
>         .align  4, $EA


Hmm, nothing, it was my fault then, sorry :( To be honest I have never tried
this, because I thought it's not possible to give alignment at all at
assembly level (with ca65), just the WHOLE segment can be aligned (at once, its
beginning is aligned then) in the linker configuration. That was the reason
I told that I need "hundreds of segments" because I thought I need a new one
at every alignment point. Sorry about the misunderstanding, it was not clear
to me till now, that alignment can be specified in the linker configuration
but also in assembler level, just in this second case I need the alignment
of the seg itself too, since the assembler keeps track the alignment only
referenced inside the seg, but it's the linker's task that the whole seg
should be at aligned address then this to work correctly. If I understand
this correctly now. Thanks!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Jan 15 10:49:09 2011

This archive was generated by hypermail 2.1.8 : 2011-01-15 10:49:12 CET