Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934976AbdCaA1d (ORCPT ); Thu, 30 Mar 2017 20:27:33 -0400 Received: from mga03.intel.com ([134.134.136.65]:63137 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933345AbdCaA1c (ORCPT ); Thu, 30 Mar 2017 20:27:32 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,249,1486454400"; d="scan'208";a="950005857" Date: Fri, 31 Mar 2017 08:27:27 +0800 From: Fengguang Wu To: Peter Zijlstra Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com, Ingo Molnar Subject: Re: [tip:x86/asm 3/3] lib/bug.c:135: undefined reference to `__start___bug_table' Message-ID: <20170331002727.vtpxqhnruh57t75d@wfg-t540p.sh.intel.com> References: <201703302127.s9kml8XH%fengguang.wu@intel.com> <20170330154927.o6qmgfp4bdhrajbm@hirez.programming.kicks-ass.net> <20170330155327.5hea4ajxnbdrephe@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170330155327.5hea4ajxnbdrephe@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20161104 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1734 Lines: 46 On Thu, Mar 30, 2017 at 05:53:27PM +0200, Peter Zijlstra wrote: >On Thu, Mar 30, 2017 at 05:49:27PM +0200, Peter Zijlstra wrote: >> On Thu, Mar 30, 2017 at 09:02:31PM +0800, kbuild test robot wrote: >> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm >> > head: 19d436268dde95389c616bb3819da73f0a8b28a8 >> > commit: 19d436268dde95389c616bb3819da73f0a8b28a8 [3/3] debug: Add _ONCE() logic to report_bug() >> > config: arm-efm32_defconfig (attached as .config) >> > compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 >> > reproduce: >> > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> > chmod +x ~/bin/make.cross >> > git checkout 19d436268dde95389c616bb3819da73f0a8b28a8 >> > # save the attached .config to linux build tree >> > make.cross ARCH=arm >> > >> > All errors (new ones prefixed by >>): >> > >> > lib/lib.a(bug.o): In function `find_bug': >> > >> lib/bug.c:135: undefined reference to `__start___bug_table' >> > >> lib/bug.c:135: undefined reference to `__stop___bug_table' >> >> Blergh.. this cures it for me. >> >> Ideally all those would use RW_DATA_SECTION, but alas. >> > >> diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S >> index c74ae9c..c8a3b61 100644 >> --- a/arch/x86/kernel/vmlinux.lds.S >> +++ b/arch/x86/kernel/vmlinux.lds.S >> @@ -146,6 +146,7 @@ SECTIONS >> _edata = .; >> } :data >> >> + BUG_TABLE >> >> . = ALIGN(PAGE_SIZE); >> __vvar_page = .; > >Also, I have absolutely 0 clues as to why x86 builds without this :/ Yes there are no x86 build failures with this error message. It only occurs in arm and c6x. Regards, Fengguang