From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Rusty Russell To: Arnd Bergmann Subject: Re: [RFC 1/3] add support for exporting symbols from .S files Date: Tue, 12 Aug 2008 12:03:56 +1000 References: <200808111606.44103.arnd@arndb.de> <200808111618.08206.arnd@arndb.de> In-Reply-To: <200808111618.08206.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <200808121203.57182.rusty@rustcorp.com.au> Cc: linux-arch@vger.kernel.org, Matthew Wilcox , linux-kernel , linuxppc-dev@ozlabs.org, Al Viro , David Woodhouse List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tuesday 12 August 2008 00:18:07 Arnd Bergmann wrote: > This makes it possible to export symbols from assembly files, instead > of having to export them through an extra ksyms.c file. > > I found this nicer to implement using a gas macro than a cpp macro. ... > + .ifeq BITS_PER_LONG-32 > + .align 3 > +\symtab: > + .long \sym > + .long \strtab > + .else > + .align 4 Good work! Hmm, you can .balign BITS_PER_LONG/8 outside the ifeq. Unfortunately .long doesn't do the Right Thing on 64 bit, so getting rid of the if is harder. Acked-by: Rusty Russell Cheers, Rusty.