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: 10060305 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 3064660231 for ; Wed, 15 Nov 2017 21:35:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D6532A118 for ; Wed, 15 Nov 2017 21:35:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 121ED2A312; Wed, 15 Nov 2017 21:35:49 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAA772A118 for ; Wed, 15 Nov 2017 21:35:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759502AbdKOVfr (ORCPT ); Wed, 15 Nov 2017 16:35:47 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:33723 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759447AbdKOVfI (ORCPT ); Wed, 15 Nov 2017 16:35:08 -0500 Received: by mail-it0-f67.google.com with SMTP id n134so15896630itg.0 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=RCvIoHf2fno+G3V0f91qfD8xSHzFCsfYyeYwVEx4wpx9Hj6qwRv1gVInk0ohhi29Og zVbCiIFPUARpBvysMg3mpxhLUnaiXUygwpL8PPTVDszivqpgenBPJOsgpwoFKeZ2qO2o LSg7PyRN4K73N6g3DgccNHkFNsZTzMOsi5VURAJudIGxk4wNYgjlIird0bSxaTB5GuNa zKAg/qX0Bn+AobYzxCXw4dpWOCztzMxPqK/w/THmMuB8/ezRNf/+W+umBGLkiZzWVXlb uATiPDcVC98Pr7BSwihR4CbciIzrmCy1e/YPym4s1gxe6uXBeBhSWj7aQ/z5LSpa2knt T5cw== X-Gm-Message-State: AJaThX7bTXi9+L++GvUjDsrb0FdWVkAws4tbPPbiMh7AsyVAu/Uw7QSB M4abll8emh0nA4+CjXTE+3aqUA== 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 Cc: Sami Tolvanen 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> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.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