From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759448AbYA3S73 (ORCPT ); Wed, 30 Jan 2008 13:59:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753378AbYA3S7U (ORCPT ); Wed, 30 Jan 2008 13:59:20 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:56466 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752907AbYA3S7T (ORCPT ); Wed, 30 Jan 2008 13:59:19 -0500 Date: Wed, 30 Jan 2008 19:59:03 +0100 From: Ingo Molnar To: Adrian Bunk Cc: Arjan van de Ven , Thomas Gleixner , hpa@zytor.com, linux-kernel@vger.kernel.org Subject: Re: arch/x86/kernel/test_nx.c compile error Message-ID: <20080130185903.GA3029@elte.hu> References: <20080130182537.GD29368@does.not.exist> <20080130184218.GB27168@elte.hu> <20080130184432.GA31485@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080130184432.GA31485@elte.hu> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > > does the patch below help? > > uhm, the one below instead. or this ... Ingo -------------> Subject: x86: fix arch/x86/kernel/test_nx.c modular build bug From: Ingo Molnar fix this modular build bug: > CC [M] arch/x86/kernel/test_nx.o > {standard input}: Assembler messages: > {standard input}:58: Error: cannot represent relocation type BFD_RELOC_64 > {standard input}:59: Error: cannot represent relocation type BFD_RELOC_64 > make[2]: *** [arch/x86/kernel/test_nx.o] Error 1 > make[1]: *** [arch/x86/kernel] Error 2 Reported-by: Adrian Bunk Signed-off-by: Ingo Molnar --- arch/x86/kernel/test_nx.c | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-x86.q/arch/x86/kernel/test_nx.c =================================================================== --- linux-x86.q.orig/arch/x86/kernel/test_nx.c +++ linux-x86.q/arch/x86/kernel/test_nx.c @@ -91,8 +91,13 @@ static noinline int test_address(void *a ".previous\n" ".section __ex_table,\"a\"\n" " .align 8\n" +#ifdef CONFIG_X86_32 + " .long 0b\n" + " .long 2b\n" +#else " .quad 0b\n" " .quad 2b\n" +#endif ".previous\n" : [rslt] "=r" (result) : [fake_code] "r" (address), [zero] "r" (0UL), "0" (result)