Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp877434ybt; Wed, 24 Jun 2020 13:34:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwutDDZArm18IL/p8CeC4v0qGlngBK/vfP1qmWQBn3ejR4IZDEFuBIt0GKTnzgoAXWSSotg X-Received: by 2002:aa7:c2d3:: with SMTP id m19mr28057544edp.382.1593030859111; Wed, 24 Jun 2020 13:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593030859; cv=none; d=google.com; s=arc-20160816; b=hmxyHOKkz6O2KhUNKqzOr1EfOflXAdcFUBmvydcUttk3vzEXQRKeJQeDZmCVZSEARG xr2d1NNGAEvx5O3lDQHvcEtLqArQhvJqBTWBa6HH2mwFNrnDUGG+i/S725SBK79mV/IT rx0gDoejhMCYWIP/oDqM3pyZ3o+SEo9aqgzzT2wL3Ow4QAUYVhH7Dn0Vp1zDFrSPl+VS rXutnTN+C/3a719wmHevaJ27C/jNyfN+Qqzq7cd5ixJbBsqe5aDR4ZxsdHBMF4tCIwgY GksCkXdxovj8/AKN7+mXrQ+7CX5/P1f80Ufw2kVzsVoKsm9km+SdD/XLJ1x62+w5E5kv 4qGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=AKMu7RfRr5zvA7HsB83o+xQyox7udGa4dX0knD98vpQ=; b=qj4BCdvWHHCO24pSvRyd92cEYMpd/Xieq8VTOtO2j71Ux1y1PZgcC41MmEnftwFC8g FCUn57TqZ6hL7etQ9DtkSyXW3DGESKhLSMWS/S8bfMK+cEncnn2T/tWJP9Xdigzow70+ efghzo1MkEyVjFkHwQxy8TUCae7ZBqp9/mc4FCvWvJ0rolMeZPa9Uzuv6l0f8end1HKk B6/S8gEnmf6SyIP8pjN3iNQbYq88LT1ZkzIzKj8nlcJ9LEONEDUya9lxGyUuoxdnNVhv K3pJLcjLQ14D7rRoDTvKlXntYDh5urhoKWK3FZjfuz0uX/SIsIVKuTLf6yDA0Ba6qkvq YN+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hwKULFJx; 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 pw19si8527320ejb.752.2020.06.24.13.33.55; Wed, 24 Jun 2020 13:34:19 -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=hwKULFJx; 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 S2406549AbgFXUd1 (ORCPT + 99 others); Wed, 24 Jun 2020 16:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406546AbgFXUdX (ORCPT ); Wed, 24 Jun 2020 16:33:23 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FF15C061796 for ; Wed, 24 Jun 2020 13:33:22 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id e82so3496439ybh.12 for ; Wed, 24 Jun 2020 13:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=AKMu7RfRr5zvA7HsB83o+xQyox7udGa4dX0knD98vpQ=; b=hwKULFJxGC6lzKBnQLuceB0YfBkygKMN1Y7kZQBIXHCsEuVKl7k53XBbhlEet2kuY6 c5h57Jm4RTz3npco+GM34bS8OimyDEzCAs5RtXK9amKrkhc3iWeXVSSos5q0no8zlKoC g7pLlix/dBDvLN2ZPktXFsba5h3mffSKhoE5+GmDS8Vr6JOxA4ewukdjiiGEPv8wdNVT NFihuGuX3xW6/cOtws4+jn8A9DLBsarXxdSvLrg+AB01n3pWOgDMboQG92CgRsUahvu2 9lqJTUHzdlliTFgZhjxMp/9FS3YVs31mDAc+87qMDsCYIvXwnXEZPUfskY1g7XwXJnjL oU3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=AKMu7RfRr5zvA7HsB83o+xQyox7udGa4dX0knD98vpQ=; b=E1aR8Ax9rkai6wjcMi2GjG+rYdfXKfuB8hiv++gwG7FPiLj/4eGmnmrd6q9oWYqHXt t2k4+U5a3Rd4uUMyJ8BkZwFCjSzM6ZyngS8vKmdoHrRE296CKKNmweNY7unH4kHqeQ0k u8cL0r0JiD9mvKTORMfSk83G6P76MXehgCUbaLNqufHTf2yHRy1qyHHgrrLMWfwGOddD RkVO13SgjfS6xbHhMpwea12eW/u8Qml9r76+Wer5DKjtXHrOiZiD2CJTPlNfB83xJUNH YT8GADLLGgpM2K6ykK8kp8BkhVud1GQuwS1CEXcpWZlSfDbR5MmMHaQllU2dNU32iz/C QzaA== X-Gm-Message-State: AOAM5325cIh9GaYSxwYTnObzT5TjOnu0PJ5RnQoysPxcZLMUeQR+8hAI MRjYHTB7QM7JrIcNtBAuCtSsEw6uP5ENSnkdues= X-Received: by 2002:a25:dcb:: with SMTP id 194mr50401188ybn.226.1593030801479; Wed, 24 Jun 2020 13:33:21 -0700 (PDT) Date: Wed, 24 Jun 2020 13:31:51 -0700 In-Reply-To: <20200624203200.78870-1-samitolvanen@google.com> Message-Id: <20200624203200.78870-14-samitolvanen@google.com> Mime-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH 13/22] scripts/mod: disable LTO for empty.c From: Sami Tolvanen To: Masahiro Yamada , Will Deacon Cc: Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Sami Tolvanen 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 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 --- 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