Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp752049pxu; Fri, 4 Dec 2020 14:57:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHT2ews0enMJWgAY6SGAF5WgvLsSuN2AHwwDINvZ/BEM/+A7lWaqVv02njKigxYD0DKFj4 X-Received: by 2002:a17:906:1cd4:: with SMTP id i20mr9455935ejh.415.1607122632983; Fri, 04 Dec 2020 14:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607122632; cv=none; d=google.com; s=arc-20160816; b=gWuoDRDaxnjQ6KiO0Dg4QDcatFehtSGUwC40E1K/VsVjO3uNHjYoR2hUT5/rNc8jOt fkLwQfRjxNagkWpBOQgg5Nko3vBwhnZvDsgQhprqQMgNcwm9gYyQLEM6seOSx0wsxqKr C4GPKnXh7iwISpQGoJWD08s06tWq2FJ1bRd4A/aL0pG3lixMCRjvu64sP2/OLdMP/xze 2rtVBLGkVBqTYe562UD64bWC8waEbzFkjcCSFYjNq1vPPb78ddUzmzrCdV8ZoZ0aMa+0 f1aDvpcsyBuO/1QFr5JG9FuCzuMFzVrm5yXcqi9SgAhyfseb/O0B/eUAJPzjyDNvfFWo 1r4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=APDwfrMJO9jpMmlvJs1QQfYlFxkBjLtMOQGI8Flupio=; b=x2bsmsq39HX1l/cdOH8jOOQNFKLj1yApgo1FRf22fxd/3osDeA/f6rrKWnZVp/rmsE Bbp6NPEu7SVMo2d2Vl/MDjvejabkQDxcCJ0lmMcRHvHKBjbNuxPni5i3HjWCI0r/FK17 PeWLCV3G9Id3Bs8Yk/sJi3kr5gFBvIzX982L69R6UTjcKCJ6zTf2PS2zIkWR8XDjbf9J 4oCoA75w5UpJZh+qsgXV8s+zUY4k0Swcs2Cx1/wG3XMLqFLLBOob5bhZNni2aYW67mFf ceG8c4trvWyh1GhdWuwbxfY817wCJ2B5P2qIOjkCZb5uUBo//ZAAlrNIi1MFcVaAAtOg F0sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vlYT2PP8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w27si2187789ejc.555.2020.12.04.14.56.47; Fri, 04 Dec 2020 14:57:12 -0800 (PST) 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=@google.com header.s=20161025 header.b=vlYT2PP8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726296AbgLDWxe (ORCPT + 99 others); Fri, 4 Dec 2020 17:53:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgLDWxe (ORCPT ); Fri, 4 Dec 2020 17:53:34 -0500 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DDFCC061A4F for ; Fri, 4 Dec 2020 14:52:54 -0800 (PST) Received: by mail-vs1-xe42.google.com with SMTP id z16so4176322vsp.5 for ; Fri, 04 Dec 2020 14:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=APDwfrMJO9jpMmlvJs1QQfYlFxkBjLtMOQGI8Flupio=; b=vlYT2PP85xGxgcq4Dr0LjAqfSnHTJbDN9Qw9s716INhVlK2qIKh97cH0so65YWekJV ZkCddAaWBBeVyc79V1Qsk0bwBXFOYV/fbRRVmb3hqZ90wFkxjB6PyGd9Fl/4pFQAhhjZ AM6IB7GFEBqHL1Jg9yyWo4W0Nb7mb6UJHeOQir6VApItA3LGKTPi0G3m3U6izolVWg8S lneowIrUY4bLqR7zyKu8N2F2ZMtJSwvpwOZjKssZqamx23Iv78VtDQw/lQdiC6Po0aWG caBNxURcOkyiTRCfZKEEQPiFtZ4Uo4eYHfBI8tK9v8an2dHQPAwNADLFINV3H5bQRJ9b cZUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=APDwfrMJO9jpMmlvJs1QQfYlFxkBjLtMOQGI8Flupio=; b=AaNQ/H9XW9OeEf6wy3A5ybdbEZ2fdstL2wVVQ3iLIcocSCuZmIwL8lM9wb8dTABFk2 alP+6cTHDAZIQT02oKM5Qp3zKvRZ+hyAILxBjTpqv/W/P2ueIXDQ33lXOWWRG4kDS8FG Xa4rtIRN0nYAgUhKN6Fgz/xjmGRvdGft4VNOahrBbYRWilO93MDS4J4ingggPLZgep8H 0SGPim822Bt92ls3gVCT8KK/3Gkv7bCsNxsyVi5eXzGRFglvLeuHBMDowU2YbayZeC+2 JSpa71+MqEqhuGHwUIHdvmzdPMgg2Dtv6vZx0jOA0+qfaUpEvM3RnvJti5rTsJ8cIjx1 AYeQ== X-Gm-Message-State: AOAM532LiyvYsgasW/vLsgonZlSmPtIHKMOwm8sFio2Yz5HTV7xI9pRj e4NJququni78WA0g81UZp9WhrEde4M2+nZ1zrpwlBA== X-Received: by 2002:a67:ec3:: with SMTP id 186mr6679107vso.14.1607122373106; Fri, 04 Dec 2020 14:52:53 -0800 (PST) MIME-Version: 1.0 References: <20201201213707.541432-1-samitolvanen@google.com> <20201203112622.GA31188@willie-the-truck> <20201203182252.GA32011@willie-the-truck> In-Reply-To: From: Sami Tolvanen Date: Fri, 4 Dec 2020 14:52:41 -0800 Message-ID: Subject: Re: [PATCH v8 00/16] Add support for Clang LTO To: Nick Desaulniers Cc: Will Deacon , Masahiro Yamada , Nathan Chancellor , Steven Rostedt , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , linux-arm-kernel , linux-kbuild , LKML , PCI , Jian Cai , Kristof Beyls Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 2:32 PM Nick Desaulniers wrote: > > So I'd recommend to Sami to simply make the Kconfig also depend on > clang's integrated assembler (not just llvm-nm and llvm-ar). Sure, sounds good to me. What's the preferred way to test for this in Kconfig? It looks like actually trying to test if we have an LLVM assembler (e.g. using $(as-instr,.section ".linker-options","e",@llvm_linker_options)) doesn't work as Kconfig doesn't pass -no-integrated-as to clang here. I could do something simple like $(success,echo $(LLVM) $(LLVM_IAS) | grep -q "1 1"). Thoughts? Sami