linux-mips
[Top] [All Lists]

Re: MIPS section alignment of object file

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: MIPS section alignment of object file
From: Daniel Jacobowitz <dan@debian.org>
Date: Fri, 22 Feb 2008 14:02:08 -0500
Cc: robert song <robertsong.linux@gmail.com>, linux-mips@linux-mips.org
In-reply-to: <20080222122926.GB17312@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3e004f8e0802210812k723a11f5ve9fa816d83bb082b@mail.gmail.com> <20080222122926.GB17312@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.17 (2007-12-11)
On Fri, Feb 22, 2008 at 12:29:26PM +0000, Ralf Baechle wrote:
> The minimum alignment technically required is the largest alignment of
> any type contained in a section.  Due to the possibility of relocatable
> links the assembler can't know what the largest aligment is, so it has
> to make a reasonable guess which would be 8 bytes, the size of a double
> floating point.

That's not really true.  The compiler is responsible for emitting
appropriate .align directives to communicate this.  I don't remember
where the hack in gas came from, but I bet it's required for IRIX.

-- 
Daniel Jacobowitz
CodeSourcery

<Prev in Thread] Current Thread [Next in Thread>