Message ID | 20221114114344.18650-34-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2098312wru; Mon, 14 Nov 2022 03:49:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf40Y/UL/7FiNWQWCFZOVB07GlDHT9pFpfPJ+Y928zdtEa3SGvHm5aRh3DaGeb6ZEt1Qriyq X-Received: by 2002:a17:906:e241:b0:7ae:e592:6d83 with SMTP id gq1-20020a170906e24100b007aee5926d83mr5583751ejb.699.1668426579955; Mon, 14 Nov 2022 03:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668426579; cv=none; d=google.com; s=arc-20160816; b=Z+grJjTpMBvxOH0BcCZj5WCdP2MwmoX9rYEAdLJ/+mLmYz9SB4LaJcBH9t3lU2rKcv NwkvCf0ZZKyS1cYyR4uHHoVVaoy6JbpPPOxUHlOPmcQgsTk+zwN0j38iIeApkpffeu2o H1ZxI1vSrmuJlJlzozQXDsQnQVuvMlCK9rS5EQbpGU0OLP9QIu7jL2+6V6Bi5wfsbnHZ fraGUOT/Tc1NF/vg/ObPCQ3lyemT7AC8ZNAWOGTV30PxIXdagRqCbCb03GhcKEb9PTB3 rxAtzF0kF2QXhkKGYcRCGGI8+FE2F9LnDLDW3Ihxd1qbBdxIWzo4e3Q8W1/LHtYQUn/X wkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jV6gJDTJwMNT3Th2aiK0VrSTVKtWf4X9aVwfUpAswVk=; b=TDwGI0L+XpE1Oo2tjisHwEk109pY7qb5XkHy7VDwr4CvKB+3IC2sD+8OCrkMeyabUK OOu2cjyn+SlhC8KQ8NttyktB5brUGPj7OOLn8G/S/4VdBNkPdYUrUPg6+O9jUFKnHuxJ XxeiJShFAmq2BzSdMo92+hBXMjth0GYngWZHSc/ycyUPWhYwoOGY0jjS03yACHOINEV1 PCqAvdJHa6897q/CmMqr/G3dKCt2sMdxz+B3oBPIcWaEsVz1NnySwzT+gzP6BR7y4s0R G3itPVsXGljRQFq4Vx25UTUqnr4LydtGErOncUFEgTMLfe6zQQnsIMaQGGSwSYPHkZmf HHVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MbgUD/gS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a1709060f1000b0078c5d28e27esi6944701eji.604.2022.11.14.03.49.16; Mon, 14 Nov 2022 03:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MbgUD/gS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236690AbiKNLrz (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Mon, 14 Nov 2022 06:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236597AbiKNLqw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 14 Nov 2022 06:46:52 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B598E21E23 for <linux-kernel@vger.kernel.org>; Mon, 14 Nov 2022 03:45:19 -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 17ED76109A for <linux-kernel@vger.kernel.org>; Mon, 14 Nov 2022 11:45:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A9FEC433B5; Mon, 14 Nov 2022 11:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426318; bh=UhlkqTA9nzxaD+YdFYt+90TEESiE0LrCL59k48oC154=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MbgUD/gSsv3dYvhc9g1nrt6qvj/Wzy72bW4GCQzXLUMoMgzlaR+gj88EtQhtFcJs8 6EQKgZHjYEeRH2lE5e9qGTLqnzTPyzx88WZPVjeNzsiHhsS9xvjh6ougVjwpxnypEx eUASlx0KkFunf5tE6ONzo4UcB7QnlVaYA6H2a9nGYjOTv6jE34rhgV80eC7TZq0GeT xRqkR00qWYh7oDjHrPeByf9jSOr3rK/+5hOvAYKGiFaw6vzj0UfxaHrsNLEf7Lots9 uRf410vzaq3NsJTOCumxjUsoesmVP61D4i4YAM7aKC4A/oAztOwKkJBlnF3s2DLL4t DBLntunTjp/6A== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: linux-kernel@vger.kernel.org Cc: Andi Kleen <andi@firstfloor.org>, Andy Lutomirski <luto@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, Martin Liska <mliska@suse.cz>, Jiri Slaby <jslaby@suse.cz> Subject: [PATCH 33/46] x86/vdso, lto: Disable gcc LTO for the vdso Date: Mon, 14 Nov 2022 12:43:31 +0100 Message-Id: <20221114114344.18650-34-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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749472069220173830?= X-GMAIL-MSGID: =?utf-8?q?1749472069220173830?= |
Series |
gcc-LTO support for the kernel
|
|
Commit Message
Jiri Slaby
Nov. 14, 2022, 11:43 a.m. UTC
From: Andi Kleen <andi@firstfloor.org> Disable gcc LTO for the vdso. It's not really useful here and causes various strange problems. Cc: Andy Lutomirski <luto@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org Signed-off-by: Andi Kleen <andi@firstfloor.org> Signed-off-by: Martin Liska <mliska@suse.cz> Signed-off-by: Jiri Slaby <jslaby@suse.cz> --- arch/x86/entry/vdso/Makefile | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index 3e88b9df8c8f..e8099ee163a0 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -3,6 +3,8 @@ # Building vDSO images for x86. # +KBUILD_CFLAGS += $(DISABLE_LTO_GCC) + # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before # the inclusion of generic Makefile. ARCH_REL_TYPE_ABS := R_X86_64_JUMP_SLOT|R_X86_64_GLOB_DAT|R_X86_64_RELATIVE|