[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assembler: maximum alignment 2^15

From: Alan Modra
Subject: Re: Assembler: maximum alignment 2^15
Date: Fri, 31 May 2002 16:55:02 +0930
User-agent: Mutt/1.3.25i

On Thu, May 30, 2002 at 05:05:32PM -0600, John Worley wrote:
>     Why is the alignment directive limited to 2^15?

I expect it's because some forms of the .align directive end up
allocating memory to store a fill pattern.

> I need to align
> a kernel section to 1MB (2^20), but the assembler chokes on this.

I'd do the align with a custom linker script.

> Is
> it a matter of changing the hard-coded constant in gas/read.c and the
> CPU-specific tc file, or are there loader issues downstream?

I think you could change the constant without any ill effects.

Alan Modra
IBM OzLabs - Linux Technology Centre

reply via email to

[Prev in Thread] Current Thread [Next in Thread]