Message ID | 20171115213428.22559-15-samitolvanen@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-kbuild-owner@kernel.org> 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 <patchwork-linux-kbuild@patchwork.kernel.org>; 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 <patchwork-linux-kbuild@patchwork.kernel.org>; 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 <patchwork-linux-kbuild@patchwork.kernel.org>; Wed, 15 Nov 2017 21:35:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759502AbdKOVfr (ORCPT <rfc822;patchwork-linux-kbuild@patchwork.kernel.org>); 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 <rfc822;linux-kbuild@vger.kernel.org>); Wed, 15 Nov 2017 16:35:08 -0500 Received: by mail-it0-f67.google.com with SMTP id n134so15896630itg.0 for <linux-kbuild@vger.kernel.org>; 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 <samitolvanen@google.com> To: Alex Matveev <alxmtvv@gmail.com>, Andi Kleen <ak@linux.intel.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Greg Hackmann <ghackmann@google.com>, Kees Cook <keescook@chromium.org>, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, Michal Marek <michal.lkml@markovi.net>, Nick Desaulniers <ndesaulniers@google.com>, Yury Norov <ynorov@caviumnetworks.com>, Matthias Kaehlcke <mka@chromium.org> Cc: Sami Tolvanen <samitolvanen@google.com> 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: <linux-kbuild.vger.kernel.org> X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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
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 <samitolvanen@google.com> --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+)