Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5482081rwb; Mon, 14 Nov 2022 05:26:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Ko+sk5jeITuuRa8GrPnkQ3X0COs5SXUe7bFZ9Maqvhx+yKr7sNPZlx903wwsQ9v53jz5f X-Received: by 2002:a63:c23:0:b0:474:d6fa:f574 with SMTP id b35-20020a630c23000000b00474d6faf574mr11356962pgl.190.1668432385936; Mon, 14 Nov 2022 05:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668432385; cv=none; d=google.com; s=arc-20160816; b=zXGFLRRrfu1E2Qu8h7CRJIsgzZlCgj8CwbDm5t9n4MbhLG5ujoI3jCGrZ5D4zvwE+C kibLjW03SCQddZzhGlqQkV1B+mF22wv/h0DsvOBntBgqeNPRAsQWnjOx8qYrzUrydK+L Jne2Qd52MkM6VJGtT12Dwr7wuXLsbXYLzKIrmL52R7dVXtRLbjQEhJPn7J4WhY1GDG1p HullVHoyMgPbxOx00MqiM8zavrAAKLcPydiWEAhJ8C0dMQ6HE7xyNHzmSJBQ1BZefLuf 8vzWHEonWhI8ZYHBDD8xAWYdw0/fIKMGB+2sHTv6cf7mSu0XgFYFxNGY3gde2jL/fxwh Ggrg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170902d4cb00b001869ef16477si10855042plg.356.2022.11.14.05.26.13; Mon, 14 Nov 2022 05:26:25 -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 + 88 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 ); 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 ; 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 ; 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)" To: linux-kernel@vger.kernel.org Cc: Andi Kleen , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Martin Liska , Jiri Slaby 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen Disable gcc LTO for the vdso. It's not really useful here and causes various strange problems. Cc: Andy Lutomirski 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/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| -- 2.38.1