Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261804AbVBIKlF (ORCPT ); Wed, 9 Feb 2005 05:41:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261805AbVBIKlE (ORCPT ); Wed, 9 Feb 2005 05:41:04 -0500 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:30220 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S261804AbVBIKk6 (ORCPT ); Wed, 9 Feb 2005 05:40:58 -0500 Date: Wed, 9 Feb 2005 10:40:53 +0000 From: Russell King To: Linux Kernel List Cc: Sam Ravnborg , Linus Torvalds Subject: Re: ARM undefined symbols. Again. Message-ID: <20050209104053.A31869@flint.arm.linux.org.uk> Mail-Followup-To: Linux Kernel List , Sam Ravnborg , Linus Torvalds References: <20050124154326.A5541@flint.arm.linux.org.uk> <20050131161753.GA15674@mars.ravnborg.org> <20050207114359.A32277@flint.arm.linux.org.uk> <20050208194243.GA8505@mars.ravnborg.org> <20050208200501.B3544@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20050208200501.B3544@flint.arm.linux.org.uk>; from rmk+lkml@arm.linux.org.uk on Tue, Feb 08, 2005 at 08:05:01PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 41 On Tue, Feb 08, 2005 at 08:05:01PM +0000, Russell King wrote: > On Tue, Feb 08, 2005 at 08:42:43PM +0100, Sam Ravnborg wrote: > > On Mon, Feb 07, 2005 at 11:43:59AM +0000, Russell King wrote: > > > > > > Maybe we need an architecture hook or something for post-processing > > > vmlinux? > > Makes sense. > > For now arm can provide an arm specific cmd_vmlinux__ like um does. > > > > The ?= used in Makefile snippet below allows an ARCH to override the > > definition of quiet_cmd_vmlinux__ and cmd_vmlinux__ > > Great - I'll merge your previous idea with this one and throw a patch > here. Well, this was a great idea until you find that this is also used for linking the intermediate vmlinux objects for kallsyms, and kallsyms uses weak (== undefined) symbols: LD .tmp_vmlinux1 .tmp_vmlinux1: error: undefined symbol(s) found: w kallsyms_addresses w kallsyms_markers w kallsyms_names w kallsyms_num_syms w kallsyms_token_index w kallsyms_token_table Maybe kallsyms needs to provide an empty object with these symbols defined for the first linker pass, instead of using weak symbols? -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ 2.6 Serial core - 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/