[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110311003846.GA23548@linux-mips.org>
Date: Fri, 11 Mar 2011 01:38:46 +0100
From: Ralf Baechle <ralf@...ux-mips.org>
To: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc: Steven Rostedt <rostedt@...dmis.org>,
David Daney <ddaney@...iumnetworks.com>,
Jason Baron <jbaron@...hat.com>, peterz@...radead.org,
hpa@...or.com, mingo@...e.hu, tglx@...utronix.de,
andi@...stfloor.org, roland@...hat.com, rth@...hat.com,
masami.hiramatsu.pt@...achi.com, fweisbec@...il.com,
avi@...hat.com, davem@...emloft.net, sam@...nborg.org,
michael@...erman.id.au, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/2] jump label: update for .39
On Thu, Mar 10, 2011 at 04:22:14PM -0500, Mathieu Desnoyers wrote:
> You seem to be contradicting yourself here. I'm concerned about having
> "structures" of a size not power of two. Can we simply either
>
> - Add a padding element at the end
> or
> - use .align 4*sizeof(long) at the beginning
>
> to make sure the linker won't put any holes when it puts objects
> together ?
It may only be a technicality but but careful with .align. On some
architectures .align x will align to a multiple of x; on other
architectures to 2^x. Another reason to stick to C wherever possible.
Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists