Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261863AbVCEF0W (ORCPT ); Sat, 5 Mar 2005 00:26:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262226AbVCEFQq (ORCPT ); Sat, 5 Mar 2005 00:16:46 -0500 Received: from chaos.sr.unh.edu ([132.177.249.105]:37255 "EHLO chaos.sr.unh.edu") by vger.kernel.org with ESMTP id S263538AbVCEFKn (ORCPT ); Sat, 5 Mar 2005 00:10:43 -0500 Date: Sat, 5 Mar 2005 00:09:29 -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: <20050304202842.GH3327@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: 753 Lines: 21 On Fri, 4 Mar 2005, Adrian Bunk wrote: > > [...] So ld looks into the lib .a archive, determines that none of > > the symbols in that object file are needed to resolve a reference and > > drops the entire .o file. > Silly question: > What's the advantage of lib-y compared to obj-y? Basically exactly what I quoted above -- unused object files don't get linked into the kernel image and don't take up (wasted) space. On the other hand, files in obj-y get linked into the kernel unconditionally. --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/