From patchwork Tue Feb 20 21:59:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10230921 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 798D360392 for ; Tue, 20 Feb 2018 22:02:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64F2528911 for ; Tue, 20 Feb 2018 22:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57EA328931; Tue, 20 Feb 2018 22:02:37 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 E7E0628911 for ; Tue, 20 Feb 2018 22:02:36 +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=U8VKIiZW+yE/2FGrITZk0loh/rANLWPPwWOIBZTkkBE=; b=ukmwrSoCqapNrsaeT4GdccLApB KiQxUmQdubxzMRdOPPoMPmlJfQSlboXi0Mchv3CGz5ESWOlDBuMqvfMoA+ptM/sAFfTcJ9kPBT1e3 7KSwNlNwZu5xCoDP+n3hgb5hV+wjlFfq9aUQbAQKrRIypcC0f1sd5KSgLAzU8atlB27rPamhfA8oB dtnWDSUPdZkgUfirnFjD2PovSju0nADM5Zh7MD+E4C6Nmn+vFVpiYfGm9GP+i1YibzTiFqc0Ogy1i D9RNBGiE9ffiXiW+k7IQG3AvEHLY1fMzZYqNQvx0OrMcc5ebrvsXAPYETQDG1/J5XVKEsg7NetKsp lTlEeY9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eoFzS-0007LV-MF; Tue, 20 Feb 2018 22:02:22 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eoFxO-00056Q-Li for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2018 22:00:18 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M731J-1ea9TW3Mu5-00wp7o; Tue, 20 Feb 2018 22:59:59 +0100 From: Arnd Bergmann To: Nicolas Pitre Subject: [PATCH 7/7] efi: disable LTO for EFI stub Date: Tue, 20 Feb 2018 22:59:54 +0100 Message-Id: <20180220215954.4092811-8-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220215954.4092811-1-arnd@arndb.de> References: <20180220215954.4092811-1-arnd@arndb.de> X-Provags-ID: V03:K0:g/CEMVWePhNFebbS+t3z1ahrGqtz52H1ciUl2QfOtEWWz189hrF 4UCDqVTe7lzPHA/3cPChJS5omNkjfn6l0U9FWwL6u6g+z43ydixs/vZgjY4Jk63ZoAtdju4 t5ZVWikTJVzodXA8fFtI7Gw1oNKNxMCEy0RXZMY1mQiCJaV0VWRAJJJrZatxBloI2un4gRs mKwsxGFkipoawu2cvx6fA== X-UI-Out-Filterresults: notjunk:1; V01:K0:qVyq8I0Ua8E=:N1BiRs+SuUxLrxbDlsW+tD U8aOzfvOdGyUXfeZqUyZuElzqVGyUeUzh/XHRwF9oCA35GSmwYdP73dgrJ+Bh9x4j0StXz0Ir ogrKmNS1zGPhSBAFdBxsA+EuZkhwJp6/AsNJ2cY3Hexrm7AMS+nf/ncVSWgdOsnmynne+Kcud y2wEBexYipchH9F+9nT74oTh9E0sI+h3khlwXA5+Dcwj3xL1ZOWaOVGXSnf5GkV5+sm3KHebD YXAnDhicFcx23CADmra77KV4cLuM9c45n25VfVGjcOL5/k6kzWxsN+8ablblcHRHkEKRivRcK A5xGdJVNWhxIxkakN4d2oNsVzydgcnkK39A/sBUFpu5ZnnbH57TRo3sd78XymheYIxLkS8Kbi TtB6fDw2gXvuvKWsAXuR2QTa66bJ/jHdLvu2ssxfsA4Ot1tiaifz6vRofBX0c5V8B3Y8bTnJO n5ZfH0yYZDH73hpBBvwWdx42foqMxZJdL6LV/XcvXYuIL5xrrMNg8M0j07ddX6eae0TWkuuzA /0uusBtLo93Pu7LQvO0C+sZUgAlX23aGTE3Iavat/CfutbLBFX0t2HyYYT1/uIGmRBgIp/Cbb YLwiyyjdeE/RLRoFjGJKPdwjN9o5V8pdRPPsKfCCMPmQk/nVIOpBksGwiRikGQHP/xvVy9/nj J3EUcJpO9HzungfLoNxPiFyIA1bdkWZ9KS7bWkhAxrHkexrXGNRx8h6HJ/XDffOBSMQbxPA4U MrAmGGjzkwRQJppxelHtEy+ChKQ7OrFavAPWJw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180220_140015_111515_C613CC41 X-CRM114-Status: UNSURE ( 8.87 ) 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: Andi Kleen , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Building the EFI stub on 32-bit ARM with LTO resulted in a build error: arm-linux-gnueabi-ld: drivers/firmware/efi/libstub/arm-stub.stub.o: plugin needed to handle lto object arch/arm/boot/compressed/head.o: In function `efi_stub_entry': Locally disabling LTO for this directory seems to do the trick. Signed-off-by: Arnd Bergmann --- drivers/firmware/efi/libstub/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 7b3ba40f0745..cc4c53f1ff0a 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -20,7 +20,9 @@ cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt KBUILD_CFLAGS := $(cflags-y) -DDISABLE_BRANCH_PROFILING \ -D__NO_FORTIFY \ $(call cc-option,-ffreestanding) \ - $(call cc-option,-fno-stack-protector) + $(call cc-option,-fno-stack-protector) \ + $(DISABLE_LTO) + GCOV_PROFILE := n KASAN_SANITIZE := n