Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp877485ybt; Wed, 24 Jun 2020 13:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypnZ92HAfYE6JVtNJjk0CPmgx5pbl7z/1RsaCSBaJyE+EKlr61xtP5cUweEzo/MFDDMXKW X-Received: by 2002:a17:906:830b:: with SMTP id j11mr28254421ejx.42.1593030863067; Wed, 24 Jun 2020 13:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593030863; cv=none; d=google.com; s=arc-20160816; b=jUVaPRDHbuBH55VGrk2Qx9i4M8+QwSLUwG9BcLrbW5u6dNyH6+uMGVthZvbiSiD8Wt gFnKdXaIdPC4rA3XbT7Ja0AL4QC47JdpwGXi7LvKhJtdt5IYpOencgJpYopKVEGlYW1k jZ4oYzvGdAUSogl1bxB0Sqst91O6E4w6LTX+WKksHXUo4tGIDEm2JyRhZd2Jf6oqdi/c gjY678CbuUHaDgRMmjs9bFtTTT7HTEWwS3qjech/VyWRau9KqngIwJ/DMlyFeflU8qXq cvQSQISOxCFUSqXY3mJQ9XwwcHrATBzISvYdfZqEVaONB8sgl1wnccCb48jQuzga4ePH L2Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=063/REsTpnFRr+cDI+sseVhgFckW5SG29uiho3UNZTY=; b=AEtdY9WlxKEu+lAIq5wd2S2FG0plevd0V10yL66SeV7NjlrnqE1fO2t1x3wikLUx4V FNa+Gm5h4VhO6vm2t50dpMLaabhpcfOpIPDgS6ULhbMVyp3747k2oMJPsT7WaSpHKRdk 66sG6mMgNwPQuuAUA9ZDkKU6gda+Hauw6sdrnDCCMliRpbIXlO2Wenf/3+jNyTHBTgG0 iet3OVXJqgqlk7+hVxzVgGyj3C6pDDMyiK5dAfSu0ydg9l8H62C/qY6WRK6K7UrZXWdh +PLmpE6xtodtQSKKKsHInNluS4seiBgljc+ku88cyJowo5zspni7EHHq9V2+Qd0jXAei rjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QHLFKZjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si13509785eja.429.2020.06.24.13.33.59; Wed, 24 Jun 2020 13:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QHLFKZjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406575AbgFXUdc (ORCPT + 99 others); Wed, 24 Jun 2020 16:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406496AbgFXUdY (ORCPT ); Wed, 24 Jun 2020 16:33:24 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16BC2C061795 for ; Wed, 24 Jun 2020 13:33:24 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id p22so3470557ybg.21 for ; Wed, 24 Jun 2020 13:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=063/REsTpnFRr+cDI+sseVhgFckW5SG29uiho3UNZTY=; b=QHLFKZjziQv1B4lTQJOFrFkeBBeD3vqMRAW+KU8uSJ0z8P5diTku752ppGYK+p1sHj Tuqj5FmieFc5zewP3DRNS5iM40Pga5Yd012RZ1UJSub9OeGcQ/BjM9Xhswo2S+wawZKA RoZrP4AKzJhPxHnp2kwUEq2iAcWJC9Jvd0o41DT/D0J5C0PT78vt0tH2KpFNFHvjKqOE izzBiEOpzdtuThxfwOEyO+K5m3BsSaqVWi7OpscZsOWnWe/8qa7rh4O22Mfte1SMk6Qe rW+Cnirb92ArG8+1lDPtjHVyv4CvsFhD6/kzdDW605IdVtQymCiQD3WRRYOvRlD/Mv+p 36IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=063/REsTpnFRr+cDI+sseVhgFckW5SG29uiho3UNZTY=; b=FHbWp0CsPhu2rhZnGQ5a/34SZjeLTrEkJ1fNYoF+nAqcSWVe5+nAjLZlZ02LzOVtr0 rqFp9JAVN/HN1F95NLEj+Ax1rQhbQRD9zn31OVnQzwjFSJIOXWwCgG2EAV8nC6iReN3d 7jWsc90yJkKb+KbkCa9/APgJGD2LYZFhDTEuJf3CsO3P1Hhn6eNm7wc8VtrORY8jxm6a p6z4VQgTUu/HbJGXTvwWQYP7RS5o7lGdbPA5NiDSUMy0ouf4drldsmM9Q6wQJanmwruM irlKk4evst+x05+Kcsl8x3YlL/TWV7ITIHqtC+XKWkIYQV4DaX2R7y6zPBAv3X3VIwkZ AcxQ== X-Gm-Message-State: AOAM532suOYK9H8Jk6DWWkwgDNWcxCGR2fkyH4IfOZjgamPjWYPEtZwa xUzsf2N/RnTjjHrHb5yq6XZTPiTM+D9T4mvIjt4= X-Received: by 2002:a25:e8b:: with SMTP id 133mr46457083ybo.13.1593030803250; Wed, 24 Jun 2020 13:33:23 -0700 (PDT) Date: Wed, 24 Jun 2020 13:31:52 -0700 In-Reply-To: <20200624203200.78870-1-samitolvanen@google.com> Message-Id: <20200624203200.78870-15-samitolvanen@google.com> Mime-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH 14/22] efi/libstub: disable LTO From: Sami Tolvanen To: Masahiro Yamada , Will Deacon Cc: Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF 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 --- drivers/firmware/efi/libstub/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 75daaf20374e..95e12002cc7c 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -35,6 +35,8 @@ KBUILD_CFLAGS := $(cflags-y) -Os -DDISABLE_BRANCH_PROFILING \ # remove SCS flags from all objects in this directory KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) +# disable LTO +KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS)) GCOV_PROFILE := n # Sanitizer runtimes are unavailable and cannot be linked here. -- 2.27.0.212.ge8ba1cc988-goog