From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261235AbVCFACZ (ORCPT ); Sat, 5 Mar 2005 19:02:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261245AbVCFACQ (ORCPT ); Sat, 5 Mar 2005 19:02:16 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:22157 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261235AbVCEX5i (ORCPT ); Sat, 5 Mar 2005 18:57:38 -0500 Date: Sat, 5 Mar 2005 23:57:14 +0000 From: Christoph Hellwig To: Kai Germaschewski Cc: Adrian Bunk , Rusty Russell , Andrew Morton , Sam Ravnborg , Vincent Vanackere , keenanpepper@gmail.com, lkml - Kernel Mailing List Subject: Re: Undefined symbols in 2.6.11-rc5-mm1 Message-ID: <20050305235713.GA31261@infradead.org> Mail-Followup-To: Christoph Hellwig , Kai Germaschewski , Adrian Bunk , Rusty Russell , Andrew Morton , Sam Ravnborg , Vincent Vanackere , keenanpepper@gmail.com, lkml - Kernel Mailing List References: <20050305130416.GA6373@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 05, 2005 at 10:19:23AM -0500, Kai Germaschewski wrote: > On Sat, 5 Mar 2005, Adrian Bunk wrote: > > > And this can break as soon as the "unused" object files contains > > EXPORT_SYMBOL's. > > > > Is it really worth it doing it in this non-intuitive way? > > I don't think it non-intuitive, it's how libraries work. However, as you > say, it is broken for files containing EXPORT_SYMBOL. > > The obvious fix for this case is the one that akpm mentioned way earlier > in this thread, move parser.o into $(obj-y). > > It should be rather easy to have the kernel build system warn you when you > compile library objects exporting symbols. Or rather get rid of librarz objects completely. We manage to have explicit depencies for 99% of our needs, do we really need a special cases that breaks for most of it's current users?