From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F2FFC2D0E4 for ; Fri, 20 Nov 2020 19:48:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF349206B6 for ; Fri, 20 Nov 2020 19:48:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zai1fspR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XzoPI1cr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF349206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bRdnVM3/oOpcqVaGCSDg5fk/g5+r4An0Z8lepR9DHgs=; b=Zai1fspR7aHI8vOl5kfJzozdb 00YlQcaatg7PmHQl4ydE9HehEwcOqveJCPqn3Z/a+LIDfciKm7S10ce/NSqmLppz31mSCfnBuJGq3 RhtZRKbNJdlebMIqSJfLR54KzuA+EHfC5VbZucyz1WCwHmJugAoRq8Gf00HfZOf+479lRtbp9pjUr y/C2x6h/t1g4msANkmxT6Sl4pwRfLscy+dgzMk2NgGMv0etzS/VQOjeC+igumqaT2wO8lyUCZNh/+ BSJdv0GIR5ZPVsNZYSk3i0oAQLyybSIZGV/Sj/mbelnUXy3xXdKNhYGYQVW4q/f60f3h0wfzi77vS 7fpt5FMdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgCNT-0006Ax-Oi; Fri, 20 Nov 2020 19:47:27 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgCNR-00069w-Cq for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 19:47:26 +0000 Received: by mail-pf1-x444.google.com with SMTP id c66so8878292pfa.4 for ; Fri, 20 Nov 2020 11:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=elr/neHdSPND1QBbHYVTIKRGGtBg1vE7OdThIsRU5pI=; b=XzoPI1crChRR6wLQGUnQdTruNmuVNj0hkcwU6yjn8xXrOzmnTuw8bZwNjYOSUMiNjn EBV38WHid50TNovyKvDuuqOK6ny2jvmInIM/dgDYVmxiGIxn7be54rsKduzrLe/jMV3q ANWN/74SZ1EEZvtawKD5ujXQl6B2YxxD3r8JI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=elr/neHdSPND1QBbHYVTIKRGGtBg1vE7OdThIsRU5pI=; b=o782wNIXy6Ln0PhiaDZk+4kIkEb7fQPqDlyGPrAHqZgJjfGVRYlIUAnn/sVCim4USH R+MIkqIziKxhLWowX6SqvqNnYbuugvYyx9fBRXU7YEO1qigBo8e06aTZYRPNDIhtovq6 rPC/F+NNuCLj8eF5YrouQYnrOQGLdtWMzFnrjrSeu0UGsWn+ZVbwH8wMoLPpvBrTyTBY sXFIOMGuwZjjvKPv66XVKKXAe8m9J6VcnbVPnoNjjjpKCKVRxL7a8ufZ2/JpA3Xv0083 mXZKUkFW4TMb3I/1+sI2Cksvq1Np+Xmt6Vrm8jgAne3U3kKqM7DcD8K4FYOBrBazcgss uj1A== X-Gm-Message-State: AOAM532wZZuI+1t9z5ntErP/yJoMbbwLxdtHje64M3m2nIoFi342QeOM mSV/INEy+mBpMQYidBMKyLKq5A== X-Google-Smtp-Source: ABdhPJwnsGzh6rI5stQsBcWRn8N0h8Ns8b+OJp9DPF9o8s3fODKrXmSZ/a2sub1vz+HM8LuYBAXNBw== X-Received: by 2002:a62:ea09:0:b029:197:bad4:1e78 with SMTP id t9-20020a62ea090000b0290197bad41e78mr8311744pfh.22.1605901643516; Fri, 20 Nov 2020 11:47:23 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h16sm4507596pfo.185.2020.11.20.11.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 11:47:22 -0800 (PST) Date: Fri, 20 Nov 2020 11:47:21 -0800 From: Kees Cook To: Sami Tolvanen Subject: Re: [PATCH v7 02/17] kbuild: add support for Clang LTO Message-ID: <202011201144.3F2BB70C@keescook> References: <20201118220731.925424-1-samitolvanen@google.com> <20201118220731.925424-3-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_144725_521957_EA71D395 X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch , "Paul E. McKenney" , Kernel Hardening , Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , Linux Kbuild mailing list , Nick Desaulniers , LKML , Steven Rostedt , clang-built-linux , linux-pci@vger.kernel.org, Josh Poimboeuf , Will Deacon , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 20, 2020 at 08:23:11AM -0800, Sami Tolvanen wrote: > Changing the ThinLTO config to a choice and moving it after the main > LTO config sounds like a good idea to me. I'll see if I can change > this in v8. Thanks! Originally, I thought this might be a bit ugly once GCC LTO is added, but this could be just a choice like we're done for the stack initialization. Something like an "LTO" choice of NONE, CLANG_FULL, CLANG_THIN, and in the future GCC, etc. -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel