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=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 2C1F0C43463 for ; Fri, 18 Sep 2020 20:54:49 +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 B46B221741 for ; Fri, 18 Sep 2020 20:54:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pCK9sskw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="KW2Q2zo+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B46B221741 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com 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:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7A/LD9B4MGGvBS9457oYwwgJGH+Rf1cFD7iVKMicPH8=; b=pCK9sskwsVlIrEyHbqA8E9HCU qjztyAjGO9JxLltZjwmre21XTJ2XGMas/hdKxreR1jLLMgw8WA8q2ZtFMLCe2fD25NePBAeo1Rgyu /7Z5KMfljCX+D9NM2zMWkPfYcawb1XAtLeBkNq1ClopW8RnV98P1ZJ5OYeSCbrMSGKjQ4a9cxFvBs OdFA8aUDtL1S+3LCZk2XSUeNKMl+RhQ1IkMnYaYYfdN+xVaPqOGZYFoFOzAz3feMcZO9f9kph8Czh O1AH7Yk3TLUj+dVsT0WIgvooB8ejQ28f3AUZuJRt5LC7LxZ9LvKru0MR06phbX6QJhUgdHCIO9qCh SNXPWO2ng==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJNNu-0003V3-Bc; Fri, 18 Sep 2020 20:53:34 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJNNq-0003ST-P4 for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 20:53:32 +0000 Received: by mail-pj1-x1042.google.com with SMTP id u3so3625685pjr.3 for ; Fri, 18 Sep 2020 13:53:30 -0700 (PDT) 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=Iy3TQ3C1Ek23yK9GZJXs0daNRNetn5CYF4/zAE2h7ik=; b=KW2Q2zo+JFuYkr4TiNUBIe05OcRvez9oPhQD2VPO4rhQx4vr57iS+J6zydE3kkrQLF DI66mG3IeYuMnm30FYVw5h6Oxc9WygSHNlBMmug3nlJy8G1DUZ0juqx+QQnea9m7Gete ZlaTZ+Z/2TdOkps+Zf6K1JMQCJdPxK/x+hQD14J8YYA/+4YQfkWf+gJLTCmIge3scE76 p3ygrRlm7Krhqb7M2JzcHo7FC2+dzmjQDXITtDjcCKKvClFY66fCZJuYnZ82RbA6pZTO Ed6GbIdgELybyBiBA7rEsXwGMBM8G5XyQ62y/lS/J/y5NTvmLs19ZGyoccTTuwOoeW73 b8Ig== 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=Iy3TQ3C1Ek23yK9GZJXs0daNRNetn5CYF4/zAE2h7ik=; b=lWhIryuTvg5GDII1FHBqYhFkz+livWtir8MIfTaSN9EEC1WfR3SlfqZwqgoAgJl35f tJqG3vj6T84DLMJEb8KLBDrZeMl8QvFgWnVEhTCItQUoCFbsf7kO6V5I0QwitSkNZnsy pH08tYYYIxcHFEubmIwZ4Z6caxtnEXLHaY1gTt4weDCccm7/9OZVFeuokQQJpfT0YqQT 69jUUsFyl2oPRSQUmuNxNTLsNq6gK8DNHLpj1MEn4iUOod8aBVqg1jfyiP9TMFTkHYI4 qxVRIrrk+2LjoeWlsQCSnDPXU2mLKHJgMEXuhzbSMdUrLfqcDDpsPInu5/fEinAMEf8l xeQQ== X-Gm-Message-State: AOAM533mLDhtqu8xxyiXBj+udhTS4D8vrUs1+iIP0Uhu9nCCXb88vV0F 3gzenSWTWrMPyAOyPukSAFz4gyb2J52hhTGfMyW9Sg== X-Google-Smtp-Source: ABdhPJykoyGWTRcD0lR6xnSRRS+gTsSrH7i8r0dJuA7wRYkUeLk2vde81YvSA+MIvTflgkJVw4xrDt+AfE3pnj9QWgw= X-Received: by 2002:a17:90b:f18:: with SMTP id br24mr2004360pjb.32.1600462408474; Fri, 18 Sep 2020 13:53:28 -0700 (PDT) MIME-Version: 1.0 References: <20200918201436.2932360-1-samitolvanen@google.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 18 Sep 2020 13:53:17 -0700 Message-ID: Subject: Re: [PATCH v3 00/30] Add support for Clang LTO To: Sami Tolvanen X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_165330_837778_842D3EA6 X-CRM114-Status: GOOD ( 27.33 ) 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 , X86 ML , Kees Cook , "Paul E. McKenney" , Kernel Hardening , Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , linux-kbuild , LKML , Steven Rostedt , Clang-Built-Linux ML , linux-pci@vger.kernel.org, Sedat Dilek , Will Deacon , linux-arm-kernel 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, Sep 18, 2020 at 1:50 PM Sami Tolvanen wrote: > > On Fri, Sep 18, 2020 at 1:22 PM Sedat Dilek wrote: > > > > On Fri, Sep 18, 2020 at 10:14 PM 'Sami Tolvanen' via Clang Built Linux > > wrote: > > > > > > This patch series adds support for building x86_64 and arm64 kernels > > > with Clang's Link Time Optimization (LTO). > > > > > > In addition to performance, the primary motivation for LTO is > > > to allow Clang's Control-Flow Integrity (CFI) to be used in the > > > kernel. Google has shipped millions of Pixel devices running three > > > major kernel versions with LTO+CFI since 2018. > > > > > > Most of the patches are build system changes for handling LLVM > > > bitcode, which Clang produces with LTO instead of ELF object files, > > > postponing ELF processing until a later stage, and ensuring initcall > > > ordering. > > > > > > Note that patches 1-5 are not directly related to LTO, but are > > > needed to compile LTO kernels with ToT Clang, so I'm including them > > > in the series for your convenience: > > > > > > - Patches 1-3 fix build issues with LLVM and they are already in > > > linux-next. > > > > > > - Patch 4 fixes x86 builds with LLVM IAS, but it hasn't yet been > > > picked up by maintainers. > > > > > > - Patch 5 is from Masahiro's kbuild tree and makes the LTO linker > > > script changes much cleaner. > > > > > > > Hi Sami, > > > > might be good to point to your GitHub tree and corresponding > > release-tag for easy fetching. > > Ah, true. You can also pull this series from > > https://github.com/samitolvanen/linux.git lto-v3 Also, I've been using b4 happily for a short while now. https://people.kernel.org/monsieuricon/introducing-b4-and-patch-attestation My workflow would be: check lore.kernel.org/lkml/ for the series in question. In this case: https://lore.kernel.org/lkml/CABCJKueyWvNB2MQw_PCLtZb8F1+sA1QOLJi_5qMKwdFCcwSMGg@mail.gmail.com/T/#t is the cover letter. Then in my tree: $ b4 am https://lore.kernel.org/lkml/CABCJKueyWvNB2MQw_PCLtZb8F1+sA1QOLJi_5qMKwdFCcwSMGg@mail.gmail.com/T/#t -o - | git am -- Thanks, ~Nick Desaulniers _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel