From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EB45C4332F for ; Mon, 14 Nov 2022 11:47:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236087AbiKNLri (ORCPT ); Mon, 14 Nov 2022 06:47:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236799AbiKNLqj (ORCPT ); Mon, 14 Nov 2022 06:46:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3150623E93 for ; Mon, 14 Nov 2022 03:45:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A32B761087 for ; Mon, 14 Nov 2022 11:45:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2217C433C1; Mon, 14 Nov 2022 11:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426313; bh=NQjJxsyILnecrraVLrD0UKjVsHwWFfzkE/ontSglPSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mr+JYDfS+0aus5xijYRaMBvF+FXRDnpM+dWoHIiFfmScS3GOY36UxHNYZeLj3b3zS XNaakPmcEiSPxT80ueG3+y7woeiEEbVWMtAtTN/zR17K1PhT7njmfVrr/KeBIIxFjR do1cwcwwThBI9Kjq3eb5p+Z1Ptv/8WEvXBLuOoM6QX7TWUpM4h9A+ifuJLwtfBCplk pj43yCKwVF67uQq0okCBxNvKIzb6bLVKZsP5z724LHOZlpC4vzQI4neD1PsZxr67PD j4owce6boYT9eo0JCWwP43SA5/F/30l1iGQMf4D9/TTVm4EyYqcC3+QNuOJzOmBlbr nrdMoRJB/JTGg== From: "Jiri Slaby (SUSE)" To: linux-kernel@vger.kernel.org Cc: Andi Kleen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Martin Liska , Jiri Slaby Subject: [PATCH 31/46] x86/purgatory, lto: Disable gcc LTO for purgatory Date: Mon, 14 Nov 2022 12:43:29 +0100 Message-Id: <20221114114344.18650-32-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen There are various issues with gcc LTO in the purgatory code, so disable LTO here for now. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: x86@kernel.org Signed-off-by: Andi Kleen Signed-off-by: Martin Liska Signed-off-by: Jiri Slaby --- arch/x86/purgatory/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 17f09dc26381..c00dc09d6fe4 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -60,6 +60,8 @@ ifdef CONFIG_CFI_CLANG PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_CFI) endif +PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_LTO) + CFLAGS_REMOVE_purgatory.o += $(PURGATORY_CFLAGS_REMOVE) CFLAGS_purgatory.o += $(PURGATORY_CFLAGS) -- 2.38.1