From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from terminus.zytor.com (terminus.zytor.com [198.137.202.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5AED3DDD01 for ; Mon, 5 May 2008 10:26:21 +1000 (EST) Message-ID: <481E4655.7040000@zytor.com> Date: Sun, 04 May 2008 16:27:17 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 To: Kumar Gala Subject: Re: How to link a .o with all modules References: <6C8AB345-2DA0-460D-B7C8-262463247DDE@kernel.crashing.org> In-Reply-To: <6C8AB345-2DA0-460D-B7C8-262463247DDE@kernel.crashing.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: "linuxppc-dev@ozlabs.org list" , sam@ravnborg.org, lkml List List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala wrote: > Sam, > > We have a case in powerpc in which we want to link some library routines > with all module objects. The routines are intended for handling > out-of-line function call register save/restore so having them as > EXPORT_SYMBOL() is counter productive (we do also need to link the same > "library" code into the kernel). > Why is having them as an EXPORT_SYMBOL() counterproductive? It sounds like *exactly* what you need -- and then having the kernel provide the same code to modules, instead of replication...? -hpa From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754366AbYEDXa4 (ORCPT ); Sun, 4 May 2008 19:30:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752353AbYEDXar (ORCPT ); Sun, 4 May 2008 19:30:47 -0400 Received: from terminus.zytor.com ([198.137.202.10]:55930 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbYEDXaq (ORCPT ); Sun, 4 May 2008 19:30:46 -0400 Message-ID: <481E4655.7040000@zytor.com> Date: Sun, 04 May 2008 16:27:17 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Kumar Gala CC: sam@ravnborg.org, lkml List , "linuxppc-dev@ozlabs.org list" Subject: Re: How to link a .o with all modules References: <6C8AB345-2DA0-460D-B7C8-262463247DDE@kernel.crashing.org> In-Reply-To: <6C8AB345-2DA0-460D-B7C8-262463247DDE@kernel.crashing.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kumar Gala wrote: > Sam, > > We have a case in powerpc in which we want to link some library routines > with all module objects. The routines are intended for handling > out-of-line function call register save/restore so having them as > EXPORT_SYMBOL() is counter productive (we do also need to link the same > "library" code into the kernel). > Why is having them as an EXPORT_SYMBOL() counterproductive? It sounds like *exactly* what you need -- and then having the kernel provide the same code to modules, instead of replication...? -hpa