Message ID | 20171103171203.107569-8-samitolvanen@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 309D0600C5 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:50:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20D0C297D1 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:50:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11FFB297D8; Fri, 3 Nov 2017 17:50:05 +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 A19FC297D1 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:50:04 +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=KyycpIIthJWqZt8pdAKrY+7qNE0Ag6Ha3/J9Mkwy8h8=; b=qSBkCUNc+zWpIV8vGg/0FC2w8v 08IkS3fEQEPXP17cM/Z11TiFpWn6U7ewhxaXKIHPil7IN8Gs8mtdfaaUwBaW1VMnTB/8zG4K5ZGFB CaMDb8avla/R8KGZ/bb/CLS+I+2rp8fKo9p9ItUpplk7rznm6xVsEFP1mf1GhI3cw81m7oEzjiSVi UbY5DD3d+jeAMiqkoN25yEgJj0xUtk3RTVGJBFFT9ZsJWmLX6Cf+6TW9RXZAM/07sTsxUlRw8g1UF xxNB1G8b96wiDmTi8ddwCkC/XR8P8xv8wsfVwf2+UfEce1kGEdtIg89rYHGdP+Kh8l9TXNtzTnwUj bmKJ7YeA==; 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 1eAg6N-0001n8-V0; Fri, 03 Nov 2017 17:49:55 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAg5k-00017j-Vr for linux-arm-kernel@bombadil.infradead.org; Fri, 03 Nov 2017 17:49:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ysMTENOwLjJfI96TSiVLHXP2qic1XFc9/i13vC4Vzxc=; b=CvPvTfHKm/b99x2TmakSLMybY nvhqzxw5vchir87o96yrubDCCCwVn3lLXOHWJpjrOIW6DI6Azheb9ILytQThjqiOvOWe4Q7/XI387 BaKcjDirRGaITos706Q6NRsLsiYedC18ENQA6GTr7xKa2S6zOn/2jfbcawXwUcIItKqWGSKzSFhrF Sne2NsSRTgWwexvICPdx4gYm12SOVqU98onw1fGwRsRp/VDzfTj98lycgYyafPeRCOwN3gDxf3JWx 0GNBbGBCy81hcg6sZ/Y2fANft/og36fFrTMQcFN8EcurzVJ/VioUo8DmGyPWFFhNtT9B2OypnvW0o bpS2xFrxg==; Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWn-0004J5-Ex for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:10 +0000 Received: by mail-io0-x242.google.com with SMTP id f20so7735714ioj.9 for <linux-arm-kernel@lists.infradead.org>; Fri, 03 Nov 2017 10:12:49 -0700 (PDT) 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=ysMTENOwLjJfI96TSiVLHXP2qic1XFc9/i13vC4Vzxc=; b=IHFwkhQnNsH6pSfLzuB4k5FP2QC08mgaNFnzd8g1mfr1VyntdHX7ZTpl8+xmvGRqls 1Xw2lLJoG7KuPrX86gX56bvluK/bmW6JE5TYaczVjPCkafQBpXnFM2AUGVE6jbeV99Rv 2Wuxsw/h1vpr7/x+7gm5iOIAl5j89/P4dyudOTZKNoWAeH0rGi2Y+R0QLHorMqz/Xzv6 2ML6KvD0ZZp+LBuUgCT6JX4i42raR4AqYrriMLdyyas+h4k/sk2fdUJ67jU8kkOQpc6o Azw2UosylW1G+8J+uiw5gAbleZpbwZh7vH0/VFlZQCwYUvBcjsmubRFyXimXAdFhMdSu 8uLQ== 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=ysMTENOwLjJfI96TSiVLHXP2qic1XFc9/i13vC4Vzxc=; b=CO/qtAvO/f7WU8R3fTciEISSr0zgtB3/n4j06SXfzVa27wu/yjiw5DVKSeOtsgEphw BFDH4ckfum8zx38NQdXop0Ayo9n1zTLXcU2dD4VtzCXBh49fw6a4HPfMrfhClHx1p04H UAczCzlpY5SBEgNWgwlwDmIuAGtWehdY8h/pI8wFLOce3wL8xXgBSlMbqQf38QNuadyQ WZq84GqLfRRw+ACW+diGPQH29ZxzSUuASqYOISECFTmxiuwIK0P2QmQoiz5kyr0T6JKG ftUSNxfMeEIdipNfsVTPcjTQlJL56IEUUd78+ov1Br562OgB0IGxos4k2Z15KRqiwrpG xbew== X-Gm-Message-State: AMCzsaXWFV5NWFdYs+MZAXdwpDrlivKtjLPcVau/HHvY3alYRylvH7H6 XH97YVocVrzt2pnpCmFoiki93A== X-Google-Smtp-Source: ABhQp+R60cZWieTegN2N9IWdvUaajo2p+1I0kDpJ65B0OM1l1nOebzzGju0ZfnxGCgelfx//P5etfg== X-Received: by 10.107.8.207 with SMTP id h76mr9397341ioi.270.1509729167346; Fri, 03 Nov 2017 10:12:47 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.12.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:46 -0700 (PDT) From: Sami Tolvanen <samitolvanen@google.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/15] efi/libstub: disable LTO Date: Fri, 3 Nov 2017 10:11:51 -0700 Message-Id: <20171103171203.107569-8-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Sami Tolvanen <samitolvanen@google.com>, Matthias Kaehlcke <mka@chromium.org>, Nick Desaulniers <ndesaulniers@google.com>, Kees Cook <keescook@chromium.org>, Greg Hackmann <ghackmann@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 2371a92808be..5146eee677ce 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -20,7 +20,8 @@ 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
With CONFIG_CLANG_LTO, we produce LLVM IR instead of object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)