Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp922480ybt; Wed, 24 Jun 2020 14:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvwD9CfU7Pb/j7Ejm4eK1Y4rAgXVlecBQoU9WvDH1ztWPAGmG3hrf5ZsbQQmFNXDzTZy2h X-Received: by 2002:a17:906:454d:: with SMTP id s13mr3318192ejq.319.1593035805338; Wed, 24 Jun 2020 14:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593035805; cv=none; d=google.com; s=arc-20160816; b=jqvCTqWzVqONTf2KafmB6tbEEcBGmXh+XhBpJkT/k5Bh1m7USL94QZCSS0EVPQ8uX7 KGQdgcn4+KPkd5RVrM3ksUgoAhU1JJvcPecsT+UaLQJqJNeoqMMZ/lqbTfjtNDNk1cu9 1z9LuQlIsn9uqu8FhEKKlVcT+pX1kVAzO7daXUjoszsR6z3hShnxpqFK4Kxs4foS02br ePKtTRmHx0uU7H74FEdHfTu1g5XkcchALlNQ/Pb8PIUXgg1mJRDjB1cPVnrCZJndfvTa H4XDSGGUwFn47RRmsjctWUG6qjuz5GMox30bBgKlUYDvQUdzyp8CrP3rqOcFDuFXGbQy 926g== 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; bh=2UVd4Vpuu4Hnm6XlHGR5cRrZnqXWEFfAzghKkxqA5PE=; b=X5wsL3cP+eURVLUfFUIgaFPDPXpMKRA/JK35f6REGnwyc8O8cfZ/RXKMq8V3whcjfu qq3b0uX6HkolEjaanAZ2Vvsvtom/l46q6s5QCaXKlkHbRGHpgZBPAeDlxPtGkGYWg+XP TtAIGCNKLIgcMYqISercdIZcelr2UnarlMDA+Y/fj3iOX9BgseKsQRemn6RyJFI+EZEK kSCE+3PJLSyCoj5IhS+EbuRm8x3KgecV5M/tdKdeqcbwgQ//2hmK0FuZAIF5BbEEe6Ay okZ5DvJ6RpTmnwWqduD+4niNrji5iUpU2lU1Rs3T993hWFJXq2Itz1gYJWCuJ/WExd29 FGMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BPMaWjSi; 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 b19si3182891edj.598.2020.06.24.14.56.22; Wed, 24 Jun 2020 14:56:45 -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=@google.com header.s=20161025 header.b=BPMaWjSi; 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 S2388336AbgFXU50 (ORCPT + 99 others); Wed, 24 Jun 2020 16:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728798AbgFXU5Z (ORCPT ); Wed, 24 Jun 2020 16:57:25 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4743AC061573 for ; Wed, 24 Jun 2020 13:57:25 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id r18so2021015pgk.11 for ; Wed, 24 Jun 2020 13:57:25 -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=2UVd4Vpuu4Hnm6XlHGR5cRrZnqXWEFfAzghKkxqA5PE=; b=BPMaWjSiHqVF8vi4hiTlzAVhVpOBnqRB11zTq0lEeedJqVV+du+PNZ4KmaMlIsirPC R928oKYPPNEK406mCXXrFo5ILeh9cKok03PTJz6JfAnRQKQCv1Rh1SMBWeCtT9nOL0oJ lryLagao4wnwA1qFmJ4sPzSNGD7lPYGa8eVmfocCRrLBf+dhWLYjqG85ZdT9LeohIlOb 2EmJnnhlOHrRKj1PGL5sVH9SaXtWzsmYftW61LHVwvnNA7wui7tFGXqcFXutnYBMCItr GdL2Vo1Q7hX8hrKDrgkMAaZk/eo83KbXysC70mpN3P9EzjPp00OuZYiGpwRBnkB00cCL l6nQ== 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=2UVd4Vpuu4Hnm6XlHGR5cRrZnqXWEFfAzghKkxqA5PE=; b=opivK6abG8NYeH1B6KWZbJD7OQ4REbVGOO+6kc0Loz93MMZzROyupvNzuoyHmga5Ho XXi0owFJXzgdUXNt/ZE1F+VeWoVf1LCiFGI/q0de/zADMmnTE3qat+zhUqdO1X+HNVIc 16FxsOD9Ev+6FoVg0q3NJAlSs3BV5NUcIeOnyCZRHzUQl8ziNU5D2KPOE/ew6L4XrbxK I40+XkgqxJV2+Q9/NPOrbQUIzQajFSXEah9bq5Y94j9S4geWtJC9kJyjAZoHAY/Ri9g5 2bJV0DAi8KRSeySrNjfkRrYlFZG22tfW/I59pwZGChWqCyB8AEZrh4VHTPF7VZilI/tJ KYIQ== X-Gm-Message-State: AOAM532og74/YAV/dV3t7L/cBwi0bmOSKRlyQEokds+YWi/eWzjoZnjO /NHWerrqnfNVlzHME1TL4DzL54jTOI9ZjC99SAiQAA== X-Received: by 2002:a63:a119:: with SMTP id b25mr22841048pgf.10.1593032243514; Wed, 24 Jun 2020 13:57:23 -0700 (PDT) MIME-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-14-samitolvanen@google.com> In-Reply-To: <20200624203200.78870-14-samitolvanen@google.com> From: Nick Desaulniers Date: Wed, 24 Jun 2020 13:57:11 -0700 Message-ID: Subject: Re: [PATCH 13/22] scripts/mod: disable LTO for empty.c To: Sami Tolvanen Cc: Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , Linux ARM , Linux Kbuild mailing list , LKML , linux-pci@vger.kernel.org, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" 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 Wed, Jun 24, 2020 at 1:33 PM Sami Tolvanen wrote: > > With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object > files. As empty.o is used for probing target properties, disable LTO > for it to produce an object file instead. > > Signed-off-by: Sami Tolvanen Reviewed-by: Nick Desaulniers > --- > scripts/mod/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile > index 296b6a3878b2..b6e3b40c6eeb 100644 > --- a/scripts/mod/Makefile > +++ b/scripts/mod/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > OBJECT_FILES_NON_STANDARD := y > +CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO) > > hostprogs := modpost mk_elfconfig > always-y := $(hostprogs) empty.o > -- > 2.27.0.212.ge8ba1cc988-goog > -- Thanks, ~Nick Desaulniers