From patchwork Fri Nov 3 17:11:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040865 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 944A7602D8 for ; Fri, 3 Nov 2017 17:20:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 796012971E for ; Fri, 3 Nov 2017 17:20:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BF8829099; Fri, 3 Nov 2017 17:20:57 +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 2C06D29099 for ; Fri, 3 Nov 2017 17:20:57 +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=Wq30hX6V0egYySVyTxSmj/ydEC jL500fLqllbEBt45kKnvT/6h7PgFTijjGErKzbLRnkGq9PMW5cGdY7EJttXSLye081tlVLzUDFthM QoDkLGhevm13r1urTpoqAD8iqoawZD6J7M01FOsf2QBYmo25T+9hoEiaSlkvZsFyDbMK8r1OntuBF sXGnpqt4atRIulhQn8j1FHknitHI9Iql94Iw60EEaEiCEvPU7oTlS5YuThAocE/5bO4NE3ElWPrgj w1toa0SNUhwvfEo9Aiifnm5FT2z0uWb0J9N47++UA5ip3AyRhnh28oVskCdW45mkSJZRdwNSZDYR9 ZpQ1iVAg==; 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 1eAfeG-0007NN-BU; Fri, 03 Nov 2017 17:20:52 +0000 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWk-0008Sq-Rc for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:32 +0000 Received: by mail-io0-x244.google.com with SMTP id n137so7745425iod.6 for ; Fri, 03 Nov 2017 10:12:46 -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=YVPmVs4PY2loqBPLt+ujzVA9MhNx4ifiBYiqIyXbFgxijj4/1s17u4cGnwmIzOJ9mr dmqrtgJI7/Vzn5eLJ83Hab5kdwQ3Ir6QaAYP002VR7VgjE5OHGJwdOxSc2oi+TJrIWBA MKsXPJGRb98wfoZ9iAPI3mYUgbZZe20PkvEp8dpmsXx79FB6TXOKcDlxGciTWdo0ZB8c Nv67qgtBPtviZS+ED0MJXhd91caz665oAvjjJzsHrY37hw6YbC6sTaqAY8sXg7iPsOka GJNgREQz2rgWH+lQZW5UDd8vMOOWh+/QKxfqGtdB4TBWhvInUb5XuvgOPm2LIT2jHYz6 bMSw== 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=B0x8Jrh7qq9SxWhGe1Dsbm3ISHo2s5E0Q66jVoBkDA2xXepKv7zD15hJ8/JCEiLITo Z4S/oU1aonTR8tU3EYQKvygiqmywqsjegdtAiZxh4X1p1cTIAVWb1AWQothjfQYyc5jP /J5+0WKi2jSFf91RHKHeMkjcOqjEr4Vf6CuFtMSZ5eix5IThJ09cYzIdY5x4fJsV9YCu J72Ztpk4MN/H9prxcFh/4YOnfQJQmwNGmM4ycbbosIkCYvSWnVhQBUhmXCa9bsUXLv2g NrZvDb6N5dHaPyCSSYYYBjz9fQyR7YbfG/UkLIkns/Ke6VH8RoZSWPgzCh5ih37CoFfG 62+w== X-Gm-Message-State: AJaThX6KNA+/zXgffexiZmhwLd6hPf4udqrJg8nQ4+LnVD3QlHa7R0bF xLaqj9i1l866duGvQqvqepdUmwZTM9g= X-Google-Smtp-Source: ABhQp+TkypdFV2ZMa0eA6DyA56E0GqxyqPwXTsGLMcT1MyjoQwLNH5gXNUO/HlG2NHlwU+V+xzlYHg== X-Received: by 10.107.46.216 with SMTP id u85mr10149627iou.2.1509729165594; Fri, 03 Nov 2017 10:12:45 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:44 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/15] efi/libstub: disable clang LTO Date: Fri, 3 Nov 2017 10:11:50 -0700 Message-Id: <20171103171203.107569-7-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_101307_324714_B5DAC8A3 X-CRM114-Status: GOOD ( 10.13 ) 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: Sami Tolvanen , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann 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 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 Acked-by: Ard Biesheuvel --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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