Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753058AbYHKPFt (ORCPT ); Mon, 11 Aug 2008 11:05:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751630AbYHKPFl (ORCPT ); Mon, 11 Aug 2008 11:05:41 -0400 Received: from smtp5.pp.htv.fi ([213.243.153.39]:48089 "EHLO smtp5.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbYHKPFk (ORCPT ); Mon, 11 Aug 2008 11:05:40 -0400 Date: Mon, 11 Aug 2008 18:03:58 +0300 From: Adrian Bunk To: Arnd Bergmann Cc: linux-kernel , linux-arch@vger.kernel.org, Matthew Wilcox , David Woodhouse , Al Viro , Rusty Russell Subject: Re: RFC: killing ksyms.c Message-ID: <20080811150358.GC3338@cs181140183.pp.htv.fi> References: <200808111606.44103.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200808111606.44103.arnd@arndb.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1757 Lines: 43 On Mon, Aug 11, 2008 at 04:06:43PM +0200, Arnd Bergmann wrote: > I saw this conversation on IRC when I came back to my screen, and > managed to dig out an older patch of mine: > > [19:03:13] at some point we really need to forbid that > [19:03:28] bit hard at this point with things like memcpy() > [19:04:36] could do it with a script of some kind and > either a whitelist of filenames (arch/*/kernel/ksyms.c > can export anything) or of functions (anywhere can > EXPORT_SYMBOL(memcpy)). > [Sun Aug 10 2008] [19:07:35] I suspect that we really want > to teach *.S how to do exports > [Sun Aug 10 2008] [19:07:58] and kill ksyms.c > [Sun Aug 10 2008] [19:12:47] if we do the -fwhole-program > --combine thing we'll make it hard anyway > > I compile-tested this on powerpc, 32 and 64 bit, and it should be usable as > an example for other architectures. > The idea is to provide an EXPORT_SYMBOL macro for assembly that > behaves in the same way as the C version, and then export every > symbol from the file that defines it. >... On some architectures the kernel is linked with libgcc and symbols from libgcc are EXPORT_SYMBOL'ed. > Arnd <>< cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- 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/