From nobody Sun Apr 28 09:54:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1589378212; cv=none; d=zohomail.com; s=zohoarc; b=j75phfv8R/gxKFw/AHBH2Xrr83c5yyy8VDQ93ldbfb4O0/NqHzrjgHi5wm3ToV8n8yTLxKs1FalR5+VfSNcM55P7KjNM+FMc6oaCj40omMacNWrp4q6RtA0BTlkA6z0KTQP2ssNZxIvhYqsh3igUfp3RnBjYeKegANBXkLbMXSI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589378212; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OBpZIsW7O3nYI/BVV0A7xGqh/zBvjJBYcsWIj8H9P7E=; b=JzyNeXoQQk2UT6ekab+DoHrfEyrpHt7SsjPvOa35dOEjaFZXlFknqztljWiSfXdA8twtgrNiM8BECWWi5kraGmJyDOrPnCH0D3YTBA4I21sVWEKNmlgReuhzr2qSm30Nyh8SkyV2UfK+z/Qd/liPI474XSzNFTDQSoSVUDbcqgw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1589378212310838.9282097113494; Wed, 13 May 2020 06:56:52 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jYrry-0007R1-Vt; Wed, 13 May 2020 13:56:22 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jYrrx-0007Qp-Iw for xen-devel@lists.xenproject.org; Wed, 13 May 2020 13:56:21 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 81f0bc89-9521-11ea-a380-12813bfff9fa; Wed, 13 May 2020 13:56:14 +0000 (UTC) X-Inumbo-ID: 81f0bc89-9521-11ea-a380-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1589378175; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yfsuuBspMmNC3kof03e5m6UQEyNDgBOVgEXM/dKmV24=; b=hJy2tvJvOMHdG0iiAU2z6tWCSXW0SIdk3cGuJzWU33eHZsNfwtdJbONd dwjoueCo/W7D6g4xpV79cBlHYYrgFFlyAICVNTWHE9GKvfvJ8e/QWOoAZ 1KOJo6wN7n8rhZXHldDOysF9GNY6G27LkbSFI1g2E/2OTVPWnH6ZswrfT o=; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com; dmarc=pass (p=none dis=none) d=citrix.com IronPort-SDR: JRMroCWzhFP36YLcddszmc8gqNxC9Wj3k0V3CzzK2SCMCzz1nBMsO7hP+fg5uNVEBuKl4Alg2z i2RefznLFaoW6Xr4iVgjISbV5aH5V6oIJ4IrsmTZ8xicSiX9/b3rfVssdbwhrtoMGEDsvBqD/t davD7CETOgkRXPdG8LWQErDbxemRXJA/dpEEyMorf4FZhXn/5jWYVDarhLWqI9QaCUOO/iSG8r /NP4kM6jUNYcXmMBf21hOo/7ZoCoMimaNgQA0s+8f3Y4B6RJTsU+u+gPf2ThFzOFmgMvJL3nU2 5lY= X-SBRS: 2.7 X-MesageID: 17688176 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,387,1583211600"; d="scan'208";a="17688176" From: Andrew Cooper To: Xen-devel Subject: [PATCH] x86/build: move -fno-asynchronous-unwind-tables into EMBEDDED_EXTRA_CFLAGS Date: Wed, 13 May 2020 14:55:51 +0100 Message-ID: <20200513135552.24329-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200513135552.24329-1-andrew.cooper3@citrix.com> References: <20200513135552.24329-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , George Dunlap , Andrew Cooper , Jan Beulich , Ian Jackson , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Users of EMBEDDED_EXTRA_CFLAGS already use -fno-asynchronous-unwind-tables,= or ought to. This shrinks the size of the rombios 32bit stubs in guest memory. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: George Dunlap CC: Ian Jackson CC: Stefano Stabellini CC: Julien Grall --- Config.mk | 2 +- tools/tests/x86_emulator/testcase.mk | 2 +- xen/arch/x86/arch.mk | 2 +- xen/arch/x86/boot/build32.mk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Config.mk b/Config.mk index 3621162ae4..b0f16680f3 100644 --- a/Config.mk +++ b/Config.mk @@ -204,7 +204,7 @@ APPEND_LDFLAGS +=3D $(foreach i, $(APPEND_LIB), -L$(i)) APPEND_CFLAGS +=3D $(foreach i, $(APPEND_INCLUDES), -I$(i)) =20 EMBEDDED_EXTRA_CFLAGS :=3D -nopie -fno-stack-protector -fno-stack-protecto= r-all -EMBEDDED_EXTRA_CFLAGS +=3D -fno-exceptions +EMBEDDED_EXTRA_CFLAGS +=3D -fno-exceptions -fno-asynchronous-unwind-tables =20 XEN_EXTFILES_URL ?=3D http://xenbits.xen.org/xen-extfiles # All the files at that location were downloaded from elsewhere on diff --git a/tools/tests/x86_emulator/testcase.mk b/tools/tests/x86_emulato= r/testcase.mk index a565d15524..dafeb6caf7 100644 --- a/tools/tests/x86_emulator/testcase.mk +++ b/tools/tests/x86_emulator/testcase.mk @@ -4,7 +4,7 @@ include $(XEN_ROOT)/tools/Rules.mk =20 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) =20 -CFLAGS +=3D -fno-builtin -fno-asynchronous-unwind-tables -g0 $($(TESTCASE)= -cflags) +CFLAGS +=3D -fno-builtin -g0 $($(TESTCASE)-cflags) =20 .PHONY: all all: $(TESTCASE).bin diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk index 2a51553edb..62b7c97007 100644 --- a/xen/arch/x86/arch.mk +++ b/xen/arch/x86/arch.mk @@ -56,7 +56,7 @@ $(call as-option-add,CFLAGS,CC,\ $(call as-option-add,CFLAGS,CC,\ ".L1: .L2: .nops (.L2 - .L1)$$(comma)9",-DHAVE_AS_NOPS_DIRECTIVE) =20 -CFLAGS +=3D -mno-red-zone -fpic -fno-asynchronous-unwind-tables +CFLAGS +=3D -mno-red-zone -fpic =20 # Xen doesn't use SSE interally. If the compiler supports it, also skip t= he # SSE setup for variadic function calls. diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk index 48c7407c00..5851ebff5f 100644 --- a/xen/arch/x86/boot/build32.mk +++ b/xen/arch/x86/boot/build32.mk @@ -4,7 +4,7 @@ include $(XEN_ROOT)/Config.mk =20 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) =20 -CFLAGS +=3D -Werror -fno-asynchronous-unwind-tables -fno-builtin -g0 -msof= t-float +CFLAGS +=3D -Werror -fno-builtin -g0 -msoft-float CFLAGS +=3D -I$(XEN_ROOT)/xen/include CFLAGS :=3D $(filter-out -flto,$(CFLAGS))=20 =20 --=20 2.11.0