Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261627AbVCEPVL (ORCPT ); Sat, 5 Mar 2005 10:21:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261626AbVCEPVK (ORCPT ); Sat, 5 Mar 2005 10:21:10 -0500 Received: from chaos.sr.unh.edu ([132.177.249.105]:14984 "EHLO chaos.sr.unh.edu") by vger.kernel.org with ESMTP id S261481AbVCEPUk (ORCPT ); Sat, 5 Mar 2005 10:20:40 -0500 Date: Sat, 5 Mar 2005 10:19:23 -0500 (EST) From: Kai Germaschewski X-X-Sender: kai@chaos.sr.unh.edu To: Adrian Bunk cc: Rusty Russell , Andrew Morton , Sam Ravnborg , Vincent Vanackere , , lkml - Kernel Mailing List Subject: Re: Undefined symbols in 2.6.11-rc5-mm1 In-Reply-To: <20050305130416.GA6373@stusta.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 812 Lines: 24 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. --Kai - 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/