Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753571Ab1BQWWr (ORCPT ); Thu, 17 Feb 2011 17:22:47 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:58961 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788Ab1BQWWo (ORCPT ); Thu, 17 Feb 2011 17:22:44 -0500 Date: Thu, 17 Feb 2011 14:23:20 -0800 (PST) Message-Id: <20110217.142320.102554706.davem@davemloft.net> To: dtor@vmware.com Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, rusty@rustcorp.com.au, linux-m68k@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 1/3] module: deal with alignment issues in built-in module versions From: David Miller In-Reply-To: <20110217221957.GA11244@dtor-ws.eng.vmware.com> References: <20110217.140119.39175251.davem@davemloft.net> <20110217221957.GA11244@dtor-ws.eng.vmware.com> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 22 From: Dmitry Torokhov Date: Thu, 17 Feb 2011 14:19:57 -0800 > Any pointers as to how to emit these pointers with asm? .section FOO_SECTION, "a" .align SIZEOF_POINTER .{,x}word POINTER .previous Where FOO_SECTION is your special section name, SIZEOF_POINTER is sizeof(void *), and POINTER is the pointer you want to add to the section. You have to also pick .word vs. .xword, or whatever the appropriate sized pointer mnenomic is for a given architecture. I know .word works for 32-bit sparc, and .xword works for 64-bit sparc. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/