Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761078AbYARMqa (ORCPT ); Fri, 18 Jan 2008 07:46:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756895AbYARMqW (ORCPT ); Fri, 18 Jan 2008 07:46:22 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:48464 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756388AbYARMqV (ORCPT ); Fri, 18 Jan 2008 07:46:21 -0500 Date: Fri, 18 Jan 2008 13:46:27 +0100 From: Sam Ravnborg To: WANG Cong Cc: Toralf =?iso-8859-1?Q?F=F6rster?= , linux-kernel@vger.kernel.org, rusty@rustcorp.com.au Subject: Re: build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87') Message-ID: <20080118124627.GA17918@uranus.ravnborg.org> References: <200801181318.30009.toralf.foerster@gmx.de> <20080118122917.GH2559@hacking> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080118122917.GH2559@hacking> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1799 Lines: 52 On Fri, Jan 18, 2008 at 08:29:17PM +0800, WANG Cong wrote: > On Fri, Jan 18, 2008 at 01:18:27PM +0100, Toralf F?rster wrote: > >Hello, > > > >the build with the attached .config was successful however I got during make : > > AS .tmp_kallsyms2.o > > LD vmlinux.o > > MODPOST vmlinux.o > >WARNING: vmlinux.o(.text.head+0x247): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87') > > CHK include/linux/version.h > > HOSTCC scripts/unifdef > > MKDIR include > > > >Does it help / make sense to report such warning ? > > > >The build was made with : > >$> make mrproper && make rndconfig && && make oldconfig && make > > > >Here's the config: > > Thanks. You have reported this. ;) > > I can't solve this problem. Let's Cc Rusty and Sam to see > if they can solve this. modpost gets confused by the section named ".init.text.1" - the additional '.1' is unexpected. Following untested patch should fix it. Sam diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 93ac52a..b5f1cff 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -736,8 +736,8 @@ static int secref_whitelist(const char *modname, const char *tosec, /* Check for pattern 3 */ if ((strcmp(fromsec, ".text.head") == 0) && - ((strcmp(tosec, ".init.data") == 0) || - (strcmp(tosec, ".init.text") == 0))) + ((strncmp(tosec, ".init.data", strlen(".init.data")) == 0) || + (strncmp(tosec, ".init.text", strlen(".init.text")) == 0))) return 1; /* Check for pattern 4 */ -- 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/