Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932633AbdHVMPA (ORCPT ); Tue, 22 Aug 2017 08:15:00 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38152 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932427AbdHVMO7 (ORCPT ); Tue, 22 Aug 2017 08:14:59 -0400 Date: Tue, 22 Aug 2017 22:14:43 +1000 From: Nicholas Piggin To: Michal Simek Cc: kbuild test robot , kbuild-all@01.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: undefined reference to `_GLOBAL_OFFSET_TABLE_' Message-ID: <20170822221443.006a2121@roar.ozlabs.ibm.com> In-Reply-To: <8e27843f-cb87-4e2e-32f1-1e1cd45cb4ee@monstr.eu> References: <201708200834.mi8UTVij%fengguang.wu@intel.com> <20170820133637.3c9a6120@ppc64le> <8e27843f-cb87-4e2e-32f1-1e1cd45cb4ee@monstr.eu> Organization: IBM X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1434 Lines: 40 On Tue, 22 Aug 2017 11:19:02 +0200 Michal Simek wrote: > On 20.8.2017 05:36, Nicholas Piggin wrote: > > On Sun, 20 Aug 2017 08:37:36 +0800 > > kbuild test robot wrote: > > > >> Hi Nicholas, > >> > >> FYI, the error/warning still remains. > > > > Still same answer as before, i.e., it seems to be this toolchain bug: > > > > https://sourceware.org/bugzilla/show_bug.cgi?id=21017 > > > > I've had no response from the microblaze maintainer, so please stop > > generating this warning now. If we get a bug report from a user who > > actually cares and will test toolchain fixes then we can easily work > > with them. > > > > Many thanks for the very good service this build system provides! > > Can you please point me to the log? Hmm, don't know if they keep a full log, but the error is mm/slub.o: In function `__slab_free.isra.13': >> (.text+0x1038): undefined reference to `_GLOBAL_OFFSET_TABLE_' scripts/link-vmlinux.sh: line 93: 48917 Segmentation fault ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects} I suspect the change to thin archives, allowed the linker more flexibility to satisfy all relocations with GOT relative. And that would cause the bug. If you could verify that the upstream kernel build succeeds with an upstream binutils using allnoconfig, then we could see about updating the kbuild test robot's toolchain. Thanks, Nick