Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 8 Jan 2003 15:48:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 8 Jan 2003 15:48:32 -0500 Received: from pasmtp.tele.dk ([193.162.159.95]:10254 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id ; Wed, 8 Jan 2003 15:48:31 -0500 Date: Wed, 8 Jan 2003 21:56:45 +0100 From: Sam Ravnborg To: Miles Bader Cc: Rusty Russell , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Embed __this_module in module itself. Message-ID: <20030108205645.GA4037@mars.ravnborg.org> Mail-Followup-To: Miles Bader , Rusty Russell , linux-kernel@vger.kernel.org References: <20021227104328.143DD2C05D@lists.samba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 25 On Tue, Jan 07, 2003 at 02:36:54PM +0900, Miles Bader wrote: > Miles Bader writes: > > When I try to build modules using 2.5.54, the resulting .ko files lack > > the .gnu.linkonce.* sections, which causes the kernel module loader to > > fail on them -- those sections _are_ present in the .o files, but the > > linker apparently removes them! > > Ok, I found out why this is happening -- the v850 default linker > scripts, for whatever reason, merge any section called `.gnu.linker.t*' > with .text. ld per default uses a default linker-scripts as you note. Could another solution be to provide a fixed linker script, used for all invocations of ld? LDFLAGS += -T arch/v850/v850.lds Not knowing much about v850, I wonder why you do not need to set the -m option. Most other architectures do this. Sam - 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/