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: 128979 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp5105549ljc; Tue, 20 Feb 2018 14:01:35 -0800 (PST) X-Google-Smtp-Source: AH8x22742eaiiy5lqdLHFNRd3YuTEOFwH5LxOaAJz9J2sy0cPtA/jC0h2Flp9rXYnAbiKKh+X4XD X-Received: by 10.99.120.193 with SMTP id t184mr865252pgc.348.1519164094900; Tue, 20 Feb 2018 14:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519164094; cv=none; d=google.com; s=arc-20160816; b=CVMoqAVEZN4h9Go90zMyhf4zU3FLQGk/8F5Ll9mGqGH42M6u8BCrTIEurl2C+GsmXS ODgc/uLTXKlVAfJuPM9kZDMb16g7Sz4jpPfXL8Qt+V5ph+kVcy/yuxNq2eYSKuzHRrV3 3lb07mfviyJ4Aw4YwmDxdZ5puEHw5BxTNTtLUnE2wjjr2SMd2RpYlV10FzKw5NG3PiI3 Ajgby43J3IZdB/Ns4WSUQ4e3HQOvyDiRKqnfIxlpQjGe2qJfsP2gPGI/kM8AehcXvvXX MPFuG9Tyow0gbyz6LslBov2w+F+kji8E8WIFKzwbLBiT+O71Sw6VYHATOKWiLUgOntgq 6ssw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=rXD5n4a95KAVVs1tORhSDXhgUkZo86wIcdGLqPa9g04=; b=Ba17ROVYkmHcsfTE5xR8TYH6/BlTwIi0o3gHYagUgknUSNmcnu9L9xev+BSeSBhL2X Xir1iXzpPNfBo0Pwxuiu53aZv+uHwUNZkH3kJf/7ew5pYe6qkjkHE2TDlsunidJuuZgI pbmPHjptk4Xx4XUxs6lm1AUj2CnzdhfXig+/fUMtVmmD7dNuAp0YTwDmKp/OWDMl6muI pKJoeCaCEL9k5kYeLjAZTzFyyi6KcWbWHfh7OcGhC+uN1iuOtximD4j8gjmcwpVaPlq+ hD35MzXLDr5xt/tPOWw5QnmuTQ2WgkgcfmBXAu5RrGKexuzTSR9PL10lEj+J3/JvLW8P 2VlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l69si16758pfk.180.2018.02.20.14.01.34; Tue, 20 Feb 2018 14:01:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbeBTWB3 (ORCPT + 28 others); Tue, 20 Feb 2018 17:01:29 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:41189 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbeBTWAU (ORCPT ); Tue, 20 Feb 2018 17:00:20 -0500 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 Cc: Andi Kleen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann 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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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