Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp77095ybz; Thu, 23 Apr 2020 18:46:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJ9qDIHOIcCR6VpWWTjaD9MoIFqwzseksxS9gm3k06fWmYHR3MIJfu+8GmhLPUjfXycUYY6 X-Received: by 2002:aa7:c98a:: with SMTP id c10mr4909253edt.94.1587692787934; Thu, 23 Apr 2020 18:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587692787; cv=none; d=google.com; s=arc-20160816; b=liTcsR6oA/SCbFC26DDuiCGqrQJqCIATur1i7xVsd6bsQvxV5uyQtq9P22v75WGUXN 3RBXCV4E0VNCQ4kigPjphreRF+G/HqNf+fLDVFPQqFEHA9TPOPBN1spmxEJyXyp65R/U q+l7C2GsiypAkLoq9WW1WZqhnGPVJGzkNHKqnXU+bhLDb1vGyxiimL+zBRc9/HGbJdhU pLkK7uS5W/0YexMxe6ylD0x/zNOcBi96OZpKPlXPsTJlXG82cvk6PEcEw+vhMn5gmTe/ lhg6iCAmu74s0ntCYHu3IMM9XwO1Iby7sMr/D9nIINcwcebG5153DmpB1/mPSWGPiA9V EH3A== 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=1SEaeJhyzWU9jqAsfWMzXzgCHVbK39e/WrbxIKUu+9Q=; b=M2lYRoyRQJgiz78neSSxW2ClU7YOvPcjH5tBKW6ttCsOOeiYzwo5TaJfhuJ6z6XzvN ApPSvCFJaeBCNC62/q42wgxQ1R1llNrf7SmhHkGt/CMDHocYc+oKCyjIHvxSEzF4myY7 KrFfOYbYFC8WijfDB+3eFYx+bEFd/L7t5nHI1B2lGUujatj2jergXwhZeVQhrbtPVcGd HlSmJavRh+1FH8c9ccouceLuhSioZBysym7SiCL2xDi9rf3zHDvQqhysZoZW+7Nhhz8t 3c2kKCcv9LaRpb85aRNaGNnLqwln+bCqquBUCD1fplK32zlpSXvUgOsySqW2ULm24Pnr N+5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="zjP6/500"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si2496754edw.426.2020.04.23.18.46.04; Thu, 23 Apr 2020 18:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="zjP6/500"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726201AbgDXBlw (ORCPT + 99 others); Thu, 23 Apr 2020 21:41:52 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:44456 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbgDXBlv (ORCPT ); Thu, 23 Apr 2020 21:41:51 -0400 Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 03O1fZLW015549 for ; Fri, 24 Apr 2020 10:41:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 03O1fZLW015549 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1587692496; bh=1SEaeJhyzWU9jqAsfWMzXzgCHVbK39e/WrbxIKUu+9Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=zjP6/500g28HsFRys18oTDgIc5zqswWxubUWm5vAW6XbUYRbiAOAoTGUi607PAgaZ UHqR4PqJDMjbNCBxdP+N6iRPSLg1wgQLeJXiIE+5RbmoCewH/cMHABVXJpg6vfewbV kLDupuMG063b92KrY4bcHmJhiscmfHgGsv8ZYj+bNAZhjyczJwOrg0d8hRkYJ6IoI7 by5pPFl1PargBRg1X1U6pq7PvjFu6yi0F2aKB5y9hK2bXAd5+pxvKXEYigqnF0bG+H JyOyKxRvlHuTWKRrFWlBXZEHHLSq+V1wAKp3EYYyJp0ai1Hrg07FEaGa2Y1GnlCro/ PwMivZffezdwQ== X-Nifty-SrcIP: [209.85.221.170] Received: by mail-vk1-f170.google.com with SMTP id f7so2326197vkl.6 for ; Thu, 23 Apr 2020 18:41:36 -0700 (PDT) X-Gm-Message-State: AGi0PuZK3gAWTbj3R6x7GwO7er3DN+yqMoIUeRgNzq+qrKgyXvcUt991 du7NPgasdbudY5PLg0Y/2YVX9+7edbSGy8Y9m7U= X-Received: by 2002:a1f:3649:: with SMTP id d70mr5910043vka.12.1587692495242; Thu, 23 Apr 2020 18:41:35 -0700 (PDT) MIME-Version: 1.0 References: <20200419131947.173685-1-sedat.dilek@gmail.com> In-Reply-To: From: Masahiro Yamada Date: Fri, 24 Apr 2020 10:40:59 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/2] kbuild: add CONFIG_LD_IS_BINUTILS To: Nick Desaulniers Cc: Sedat Dilek , Masami Hiramatsu , "Steven Rostedt (VMware)" , "Peter Zijlstra (Intel)" , Tejun Heo , Mauro Carvalho Chehab , "Joel Fernandes (Google)" , Patrick Bellasi , Krzysztof Kozlowski , Dan Williams , "Eric W. Biederman" , LKML , clang-built-linux 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 Fri, Apr 24, 2020 at 3:44 AM Nick Desaulniers wrote: > > On Sun, Apr 19, 2020 at 6:19 AM Sedat Dilek wrote: > > > > This patch is currently not mandatory but a prerequisites for the second one. > > > > Folks from ClangBuiltLinux project like the combination of Clang compiler > > and LLD linker from LLVM project to build their Linux kernels. > > > > Sami Tolvanen has a patch for using LD_IS_LLD (see [1]). > > > > Documentation/process/changes.rst says and uses "binutils" that's why I called > > it LD_IS_BINUTILS (see [2] and [3]). > > > > The second patch will rename existing LD_VERSION to BINUTILS_VERSION to have > > a consistent naming convention like: > > > > 1. CC_IS_GCC and GCC_VERSION > > 2. CC_IS_CLANG and CLANG_VERSION > > 3. LD_IS_BINUTILS and BINUTILS_VERSION > > > > [1] https://github.com/samitolvanen/linux/commit/61889e01f0ed4f07a9d631f163bba6c6637bfa46 > > [2] https://git.kernel.org/linus/tree/Documentation/process/changes.rst#n34 > > [3] https://git.kernel.org/linus/tree/Documentation/process/changes.rst#n76 > > > > Signed-off-by: Sedat Dilek > > Just some background on Sami's patch. Originally we were using > ld.gold (for LTO for Pixel 3) before moving to ld.lld (for LTO for > Pixel 4 and later). Not sure if Kconfig would be a better place to > check if gold is used, then warn? I kind of prefer the distinction > that binutils contains two different linkers, though if no one is > supporting ld.gold, and it doesn't work for the kernel, then maybe > that preference is moot? I prefer LD_IS_BFD, like this patch: https://lore.kernel.org/patchwork/patch/1039719/ We do not need LD_IS_GOLD, though. -- Best Regards Masahiro Yamada