From patchwork Wed Nov 15 21:34:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060303 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 8F9C660231 for ; Wed, 15 Nov 2017 21:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D11C2A118 for ; Wed, 15 Nov 2017 21:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70AF72A312; Wed, 15 Nov 2017 21:35:45 +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 276822A118 for ; Wed, 15 Nov 2017 21:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730AbdKOVfo (ORCPT ); Wed, 15 Nov 2017 16:35:44 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:35004 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759015AbdKOVfJ (ORCPT ); Wed, 15 Nov 2017 16:35:09 -0500 Received: by mail-it0-f68.google.com with SMTP id u132so3498490ita.0 for ; Wed, 15 Nov 2017 13:35:09 -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=Drzf+ovEUSyOi+53PvLdTMzivnlbedBfWSZ+CryATUQ=; b=bzWv+NeIx2p2su/5gOneAVWNULdjJOuBUMBCfc6Ye7xJFf6ZPXoGYQhkDfLqG2oBkt 3IShxadTwx9NMhd5aOb5O8PVbW7nxm0HGCWp6pVs9HL/qe47zH4ag38YEInhDLITDMmq KNiaj/XFUcDh+DQDFWQZmyoaBK1CFS/J9tiQ4YUuMsYjS3viWA1fR1L/NeuIBMebwcnQ xv5uwpHuswD1wj5zmoEIeuEVRmnxnAbx1QurVPgqKyhroH0c08B+vq9XBNANnRSuOOGY PBw0mAneCCqvRC6ilAiQdBOXNsCDTT6JSZ33ZOKJwGAKhP8YiN9Bkh2HVXbuewOmcc91 zJWw== 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=Drzf+ovEUSyOi+53PvLdTMzivnlbedBfWSZ+CryATUQ=; b=ewndOthDskCjAY/Fc79q2BnKubvUq5wBqSoBVA+aJdS/D6Tn4RBFLds1lDO6hQ+3DL Sx/yz1+bUJwQI3mwjj4ogfv7SHMuSZKLkAgO27kvM7bGg+CP8doa3uk0g5MhbJck7GxL ybPLPtIZ9LiEauoNXHeJoX13iR/LjJuvLyQX2HooHIFkJVnkABOQb/0oWXQJnVE7x8Q0 cNPkq4n7lmdWEFxwYnZVOuOZeT8eRrQSvlw71+BYKrH+mB6Ps7M+Eru1loFLaR6F0piy mGLUxQDOaPHk7VoQv3GsAS61B07+SGBNr6GOHNhwZH3uuRLPIIORrV2iPHNKj5gLwBUv vTnA== X-Gm-Message-State: AJaThX6FoUVlHMmG9e6qO0TPP1EmH1z5Uk84CLiJFX6RDFHNE9GijxNG qpjySrOEoeknPgUlSHEjcHLNJg== X-Google-Smtp-Source: AGs4zMZLberruuddT3NsyKt1sfH7jWZU/Bxbxciw/cAmaR7Skr4UmmWvuYjnLimEjadt/To6G6kVqg== X-Received: by 10.36.46.4 with SMTP id i4mr4954179ita.145.1510781708483; Wed, 15 Nov 2017 13:35:08 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:35:07 -0800 (PST) From: Sami Tolvanen To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Cc: Sami Tolvanen Subject: [PATCH v2 15/18] efi/libstub: disable LTO Date: Wed, 15 Nov 2017 13:34:25 -0800 Message-Id: <20171115213428.22559-16-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: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With CONFIG_LTO_CLANG, 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. Acked-by: Ard Biesheuvel Signed-off-by: Sami Tolvanen --- 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 adaa4a964f0c..69b3fbfb7f97 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