From patchwork Wed Nov 15 21:34:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CA04D6023A for ; Wed, 15 Nov 2017 22:03:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2C512A33F for ; Wed, 15 Nov 2017 22:03:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B67712A33C; Wed, 15 Nov 2017 22:03:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 588F42A338 for ; Wed, 15 Nov 2017 22:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=chAXJHE4iv9gsMERFRilpYJebSbXKL6CBCe2sN6F1LU=; b=EcimCbhVUnqDmq/LAsWW0ZIubT qf+S0V6oPwIxNwpByEYdQHtk6e7IMlvlwQycHQSCQndgZ76A52yVoFSr2EA/W4lytY3y4PXY0b0bf 5b5QRJmtX0KwYBjguZX7w/l8coIBiZPULF6+f9sGJM3FN790y1/wYi9l783PCsBMGbN9T01N9gHJv z2mcAXI/pkrH20hp8Q9HyetZvX22ZzK4/l5DzbZx0O2rDOCOuiR2BEzwKk/k3w7ywL6f0+vUlwTpV ArFye7BaVLr8QIA3QNNKJkZiH+100gnG6ySyhYXcWnU9CWAOQWv/25RBzX2nE7jR9ttzs+FY37QTF WSlUcHCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF5mC-0005HU-I7; Wed, 15 Nov 2017 22:03:20 +0000 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF5LB-000076-Ns for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 21:35:32 +0000 Received: by mail-it0-x244.google.com with SMTP id m191so13353276itg.1 for ; Wed, 15 Nov 2017 13:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jJoCoQ2z9qxoAeDF9lG9ZhnPa/xYAP0bsbCipKG+VD0=; b=jm4BfP8ph566MvrI++0yvN5HD5NKq92trWAsb20HxAhpay8CE0z1m5+5AtB31QL/U6 retFUnscmglp+BVQ1OMOHOtJ2Aopa45/XLP/yM+OeGv7nXFL5csFj/h0hTrYJovskB0D 1mjueBKQKPFp+aTSOKl7MysCI9jL97gGg488tqMVkMVbs8Iuh9gilYkCMLkYDJkt2x2S rpGKFxu+uKfrWPf/ybjSHVS996eYLEtNtYad3thB88ppGaX7Nt4VdBfM3+94kKes/gd7 HOZy9PHC0LuvwXkJivgBgJrMEtG1ep77YZ0DUFnS7bjA0kaG02fmIs9YbP3fr5mSXlOV x26Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jJoCoQ2z9qxoAeDF9lG9ZhnPa/xYAP0bsbCipKG+VD0=; b=bJMqdlWA7cwKC0JyGqhRVv/aYkzr4rBokIYv2yPsDq5TDvcQTMoUWMV/N/LgnujUFM QUCy5168wNqlW5+usKI9+wYOvDwCWIpkaUSnlgWDIwnxt2Vq45ojMYllGrjNKcLJ975y fBD83jQej1L1GGQQTS4iYk03LIKUTv4pnEUFXm406pLVJDOE3BckyYXm/0YJagal7eAN fZGT07BJSkJeHkVfSYJFE43aEv/wc8/Jl9zIhYiTJSRIjKPy/Kq7KiQuhwCmo5+V6CJT ngCRoynzv2ITkLY8Jh+aj8xkrUuFVkGf7r/T50ljcjM5KPwmv1P6/plbweMNhlufu605 9xMA== X-Gm-Message-State: AJaThX7coSvf3ity8t85LHhgr74LcXInSx6MvM1cNQTYG1zkmW6eLr2V 3GykygtzuWUFTMwnuDjDVz/bgQ== X-Google-Smtp-Source: AGs4zMYz9VWOIXwvEIj+M2Pcyl2LgnKXgUTAjIpSTwjMuNQao1a3leFjYCzESeK1et1jTpRkaV7T9Q== X-Received: by 10.36.148.19 with SMTP id j19mr22833540ite.51.1510781706543; Wed, 15 Nov 2017 13:35:06 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id 68sm9735197iov.2.2017.11.15.13.35.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:35:05 -0800 (PST) From: Sami Tolvanen To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: [PATCH v2 14/18] scripts/mod: disable LTO for empty.c Date: Wed, 15 Nov 2017 13:34:24 -0800 Message-Id: <20171115213428.22559-15-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171115213428.22559-1-samitolvanen@google.com> References: <20171115213428.22559-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_133526_198202_54A06B53 X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 42c5d50f2bcc..e014b2fdd069 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_empty.o += $(DISABLE_LTO) hostprogs-y := modpost mk_elfconfig always := $(hostprogs-y) empty.o