Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp480912ybi; Tue, 16 Jul 2019 23:58:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTGlu90jzpfyOrYf2jC/humZ/SOo2Iu3VRp6kOao1EyDFResYhcNqBXclPL2WOvBI5DsM2 X-Received: by 2002:a17:90a:ad89:: with SMTP id s9mr42551210pjq.41.1563346691060; Tue, 16 Jul 2019 23:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563346691; cv=none; d=google.com; s=arc-20160816; b=eJ1OTFO6QVqEJvdJGFTLY+Qp0XHLEHOjX4ZvUceTxj0eBNtDo/ftXGNxO2cmBAPREz vmJTjHai4+ENtn+wwfQzwd072JXYgLJn0XgpwHF3Ig+ITH+38hjlBdZmTwEN33/AXI+p nkwVPTtbFIv0CnFn+KRJkACXsiQa+1nUTiisAxX27hVcIiM+v9us0LQcdY4lU1KJ2Q+o UCy4rcs1cJOU2twkshy+7mLf9BglFkwtxjiROKdq5TwSRlnteTAh/FXkwDkerS4dqUkt rmqw8n0kAwwooeNlFU7b5F7OkSJPGAe3g08+Dw0qUDBwX4x7F+qe/1G8vhFr2dDD3EWg 3csA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=DgvFg/PvmkUqzBOA3LWysbbyKsyxr/rzbPQxUzumKDw=; b=ZIgQ+vSYfGoJOkW28hhf4SQu/j2VDRrMqZhjs+6VsIzo5+5A6hA8trQfbuEAui+av5 nMQcd2JjZLs5fJjm7EDfmsgkETwICOjeGw4q8ZbPuxhxJCI7FOifsi5gfo30/fJfy84F iMeqdyjDtFIDMcr1j1boTM+b8quCvRJW/5++Rp/60clu6gM7BBLa0A2/0ROVuXh0ArdV X30551nidTG5dNczOl3ozWYjoTEv25yAdrFrNqAX+L+0WY2ybgvAZmPLqVDPH2BDfCH/ AQrJy75xja157AQZRfkZNcMNCYT1OOikNHq8cPVB5SvKXROfPrgBSdXuzZouYgsRnuLa nrKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TEceMaLQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si22440078pjt.70.2019.07.16.23.57.54; Tue, 16 Jul 2019 23:58:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TEceMaLQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727436AbfGQGzf (ORCPT + 99 others); Wed, 17 Jul 2019 02:55:35 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:20473 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfGQGzf (ORCPT ); Wed, 17 Jul 2019 02:55:35 -0400 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x6H6tO50030501; Wed, 17 Jul 2019 15:55:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x6H6tO50030501 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563346525; bh=DgvFg/PvmkUqzBOA3LWysbbyKsyxr/rzbPQxUzumKDw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TEceMaLQ5cu0tGpqcOWAN+VpoUmoHF56DWywqHL4BqtRMRH8yZiDIcnW2aChUZtFk FKmQFVpx5rtYHm8VH+hDO4m7ITgFw7GxEECodvMFGy2zflzyMpzJC/oXuy/H4nuWYc LShHH3NSMfDlRWjtu1FFO6fsDSBBJlOCRO+c42nYqg+i8Hj3NncmHh2kgTtCaXAAFY 8u6oalskaRMYcDBKp9t0zkYO40o3PyCw7n069NxSXH48nyH3LbO/gBagF0Tbka2D5f +Xz7ABcFzQgclalcPoRfu6VB5qAKWRRjKEMRC09nS4+FNRUXJSxWhpiWS37KXxEAE4 6Wpzz/dwC0DQw== X-Nifty-SrcIP: [209.85.217.46] Received: by mail-vs1-f46.google.com with SMTP id a186so14086876vsd.7; Tue, 16 Jul 2019 23:55:25 -0700 (PDT) X-Gm-Message-State: APjAAAX/3/HOSWKlyyzaYY9Q/baGY+3Z4Wfp5MaixzxpGsg38hlxb68O 0rXWnyLBkcEl9TSh03PONWQotxeaey/TJ4wIvPg= X-Received: by 2002:a67:fc45:: with SMTP id p5mr23322373vsq.179.1563346524244; Tue, 16 Jul 2019 23:55:24 -0700 (PDT) MIME-Version: 1.0 References: <20190716170606.GA38406@archlinux-threadripper> In-Reply-To: From: Masahiro Yamada Date: Wed, 17 Jul 2019 15:54:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: Fail if gold linker is detected To: Thomas Gleixner Cc: Nathan Chancellor , LKML , Linus Torvalds , X86 ML , "H.J. Lu" , Linux Kbuild mailing list , "Theodore Y. Ts'o" , Mike Lothian Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 4:47 AM Thomas Gleixner wrote: > > The gold linker has known issues of failing the build both in random and in > predictible ways: > > - The x86/X32 VDSO build fails with: > > arch/x86/entry/vdso/vclock_gettime-x32.o:vclock_gettime.c:function do_hres: > error: relocation overflow: reference to 'hvclock_page' > > That's a known issue for years and the usual workaround is to disable > CONFIG_X86_32 > > - A recent build failure is caused by turning a relocation into an > absolute one for unknown reasons. See link below. > > - There are a couple of gold workarounds applied already, but reports > about broken builds with ld.gold keep coming in on a regular base and in > most cases the root cause is unclear. > > In context of the most recent fail H.J. stated: > > "Since building a workable kernel for different kernel configurations > isn't a requirement for gold, I don't recommend gold for kernel." > > So instead of dealing with attempts to duct tape gold support without > understanding the root cause and without support from the gold folks, fail > the build when gold is detected. > > Signed-off-by: Thomas Gleixner > Acked-by: Peter Zijlstra (Intel) > Link: https://lore.kernel.org/r/CAMe9rOqMqkQ0LNpm25yE_Yt0FKp05WmHOrwc0aRDb53miFKM+w@mail.gmail.com > --- The code looks OK in the build system point of view. Please let me confirm this, just in case: For now, we give up all architectures, not only x86, right? I have not not heard much from other arch maintainers. -- Best Regards Masahiro Yamada