Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4700929imw; Tue, 12 Jul 2022 12:41:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vtArg2iR84LU1xu0glQNiqYdYDwf5naSugE+s9gVJjvuKN8LXLARfeNEt7GAPFbGNVQCjS X-Received: by 2002:a17:902:c944:b0:16c:5897:7ea0 with SMTP id i4-20020a170902c94400b0016c58977ea0mr6601658pla.127.1657654867613; Tue, 12 Jul 2022 12:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657654867; cv=none; d=google.com; s=arc-20160816; b=XixTA5Pk2DxNeRcy3tv0pEND+T1Au18PLC12/OwUb8Q4/6anuSrRLfs6Cp0EdQNpXP pM3rXk0mngAAIYasDnmwsEk28rUsduAxoOa51piqEGXw81TbmU/6P4bPgAyxAusbE3/W knZqJAxFwo3HsPlLzLMkjVZ/N3vJ7GHiLSsQ6LPdtzgZYD3M52jXz+jX06U1hniB34+0 8uuOJBvjhswnKYxCojqNoZQuKx0LnAzR1qF9kONlazkZ7sEKjHBb2Ief+SGdT52NG8oZ R+vMqEVeU6MSlsJxjvJbF2HzWLxR+hXSWfBMdHiLz07Y22iTImQGlP8AzdCyzAOs0GeN 75pw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=446iGe/Nboje7RNBxZmUeoUotQh37JuUF81iOTe72jU=; b=kz72zlMduyA29bOa/oKRE8ctRPk/u/bvap/emE2U8IfW1Bqw3O8DmHCWO5fKS6bCtm EHx/Ev8UkaEaEY60ReP7Xy8Pr5pKivTeDP/whEQqDZ9RABO2TcMdsKKMUbB3wB+64abZ ModXxiI2Pi6krU1lLR7vILbW281yasGhkuYTcfQB/8GA9OZWACsDiQl9ASobfGYbwxqL 2uX3O2uilhRejUy8VO0LLb1cgnWZj+f2cOqVDdCOaXcivJ6Qzc1V/7chVz1Eutesoa+I KlMQl/zKb0S4qkWCVuvX50x+2TRdcHhzmfgLF7S189U47z7yPc8bcAWdQDQYK9Ai2H6+ figA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DESRQTfB; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np17-20020a17090b4c5100b001ef9c6b364esi16875924pjb.92.2022.07.12.12.40.55; Tue, 12 Jul 2022 12:41:07 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=DESRQTfB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbiGLSyv (ORCPT + 99 others); Tue, 12 Jul 2022 14:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234806AbiGLSyF (ORCPT ); Tue, 12 Jul 2022 14:54:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E7F4D7B89; Tue, 12 Jul 2022 11:45:41 -0700 (PDT) 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 E073060C8E; Tue, 12 Jul 2022 18:45:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA833C3411C; Tue, 12 Jul 2022 18:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657651540; bh=vg9lEJu/LLQWjpmK0UYvHuBX4PCo2gXqubrhZY/0Pjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DESRQTfBy+n8DWP5o6UIg3EbjN4xB6Jti0e0AzI2ZebLLEASxhVXEI06fnHCfQ9AQ fQeyqTJ8Q8patdiPMpKXMGaDE37SsMlKqTR+L5AGiDgbkTGBcoakKUFjtjXoMcH0D0 T8WmI9+JZfasO3hygM9RfZdiTS1fEZWJvHUgtEvo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thadeu Lima de Souza Cascardo , Ben Hutchings Subject: [PATCH 5.10 077/130] x86/realmode: build with -D__DISABLE_EXPORTS Date: Tue, 12 Jul 2022 20:38:43 +0200 Message-Id: <20220712183250.009642343@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220712183246.394947160@linuxfoundation.org> References: <20220712183246.394947160@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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: Thadeu Lima de Souza Cascardo Commit 156ff4a544ae ("x86/ibt: Base IBT bits") added this option when building realmode in order to disable IBT there. This is also needed in order to disable return thunks. Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -31,7 +31,7 @@ endif CODE16GCC_CFLAGS := -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc.h M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) -REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \ +REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)