Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp81338ybi; Tue, 16 Jul 2019 16:38:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTCVvy/7VLZUWWf9lhpx6PbxZ815YuqbhB36+dC2vdppgd37DSbviOxfXQmWiIBm8+OuZa X-Received: by 2002:a63:db45:: with SMTP id x5mr25294205pgi.293.1563320330074; Tue, 16 Jul 2019 16:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563320330; cv=none; d=google.com; s=arc-20160816; b=k5k7cVl/Ao6cb7jUmQKOPqvjalTpG6nn6d+xr67GZrwzLJvChfxR2R2eX2Qz1/E4w+ aytyBryfvhooTU+l1wiWbo7mmCrTWAoUtUZQ2dymafhNzYxP8/53Ne4rBXSUFMwBIO2L oSiR7zvUZ/bTZUW7fuu6r3L3WB0cSlUU6LtcpsoVQBRpY8XUIffWndP/XwE1rCtocRaw QVaO/MORx4JwFWDAfqenDJMbJrVV/Z4m0Sd1oXNP2vdyfpWCtLX+jDi4gCWWlyXGowbQ wZq+2wl17V/KFa7LvsEPWbd8CH8nUOxpDuttct7BsS5edHQ9DMGUxyE/2AM+f7Zpnncx /wrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=3VDfnrxtagO7QIQEIHeCA/Ujj7BjD8uTxqOsYm5iQps=; b=tocapQAXLPhxEUlWTt9qKbWET12YGK6j2/yG/apjwztjvZBBnyYhMzPiFzOHz8xTU3 rAfdSBIjFJ+AfUiR5SkV9OVQLYxSElhVVX7Ya58C14sURhTotZxE0V9pFQwCSQqr4BWv w+PYsrRV7imZanet+tVYaUCXs7ZwEBiVOh+kToOe7CEhNbQqeLHtdkCpm1h/PfDmLARH Q9XEDH3xFiWowflxW9OZxZ/pkve+I9bMFH8MnNv5GPhzudiQqjc3BkU2EnHdC+8sZvGg rUtIh6zdZrg/coSZSdWeDga5VhaaIJLxY+hMAaC6DwUEkkd4mkPTor/f+EyLdMfv5SDM ESYg== ARC-Authentication-Results: i=1; mx.google.com; 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 w21si21737436pff.263.2019.07.16.16.38.33; Tue, 16 Jul 2019 16:38:50 -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; 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 S2388991AbfGPXha (ORCPT + 99 others); Tue, 16 Jul 2019 19:37:30 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:39465 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387623AbfGPXha (ORCPT ); Tue, 16 Jul 2019 19:37:30 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-99.corp.google.com [104.133.0.99] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x6GNb898019260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jul 2019 19:37:09 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id A0775420054; Tue, 16 Jul 2019 19:37:08 -0400 (EDT) Date: Tue, 16 Jul 2019 19:37:08 -0400 From: "Theodore Y. Ts'o" To: Thomas Gleixner Cc: Mike Lothian , Nathan Chancellor , LKML , Linus Torvalds , x86@kernel.org, "H.J. Lu" , Masahiro Yamada , linux-kbuild@vger.kernel.org Subject: Re: [PATCH v2] kbuild: Fail if gold linker is detected Message-ID: <20190716233708.GA11824@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Thomas Gleixner , Mike Lothian , Nathan Chancellor , LKML , Linus Torvalds , x86@kernel.org, "H.J. Lu" , Masahiro Yamada , linux-kbuild@vger.kernel.org References: <20190716170606.GA38406@archlinux-threadripper> <20190716195957.GA38495@archlinux-threadripper> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 12:25:14AM +0200, Thomas Gleixner wrote: > > It's been my default system linker for years and I've had very few issues > > with it and it's a big improvement when linking with LTO > > I understand, but the fact that you need to turn off config options in > order to build a kernel and the clear statement that it's not recommended > makes it truly unsuitable and unmaintainable for us. Or if you work for a cloud company who is willing to make the gold linker work for your specific use case and configuration (and ideally, have gold toolchain experts on staff who will work with you), then it might be OK, but just for that particular use case. (Just as Android kernels worked with Clang when Clang was still miscompiling kernel on different architectures and configurations.) In those cases, you can just carry a patch to force the gold linker to work. The point though is the teams that were using alternative, not-always-reliable toolchains, were big boys and girls, and they weren't asking the upstream kernel devs for support. And they only cared about a few specific configurations, and not something that would work for all or even most configurations and hardware platforms. - Ted