[Top] [All Lists]

Re: MIPS section alignment of object file

To: Ralf Baechle <>
Subject: Re: MIPS section alignment of object file
From: Daniel Jacobowitz <>
Date: Fri, 22 Feb 2008 14:02:08 -0500
Cc: robert song <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
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

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