From nobody Sun Feb 8 17:48:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98019+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98019+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1672934715; cv=none; d=zohomail.com; s=zohoarc; b=XA7xKPfSoVD/qEHLrxcNVZZt42oM7YLq9MIX/8x8jAh2JZxbqJ3/EmxWhAZXZAuiSBJMK1axRYwBRaXc3e5zZ6vjOOafYz3zG8tO6XLq4KQoGgfqRvRP1KMfYOtVNowvSvm2DKmJ1Ufpb0KXxKxgbtFFKYnMCukspeb8Cs04xpo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672934715; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Dlp7F1xnxVcOfE53K5yis5HzNhSWFAnYMfswg7r0JMo=; b=XQw+SO3elnx3/Lo/kvMqOgGv3xbt0QG1rp3HWI3+k43G+xqCzc5tDcxZRZJEn6nuscqhMkz2eFrnbA7pdwPOGFPGtw26ZGTrddmxQNxVjB7jGkncaTd3OiENZkHQ4dHzdcQKgnIWAEaJGsNEGIkJ4mFTsXRpvi2Q04LPp+f8oRo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98019+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1672934715361481.2966896550263; Thu, 5 Jan 2023 08:05:15 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5mspYY1788612xntsM0XO4Ei; Thu, 05 Jan 2023 08:05:14 -0800 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.16562.1672934713772124491 for ; Thu, 05 Jan 2023 08:05:13 -0800 X-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 4F88961B0F; Thu, 5 Jan 2023 16:05:13 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 778F1C433F2; Thu, 5 Jan 2023 16:05:11 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Ard Biesheuvel Subject: [edk2-devel] [PATCH 3/4] BaseTools/tools_def ARM: Make choice for soft float ABI explicit Date: Thu, 5 Jan 2023 17:05:02 +0100 Message-Id: <20230105160503.1423627-4-ardb@kernel.org> In-Reply-To: <20230105160503.1423627-1-ardb@kernel.org> References: <20230105160503.1423627-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: xz0p865Fx5bpmZLBy2oko8dux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672934714; bh=4dBcX34YbPnrtjr9qZDjldrDPDeLWQZljcDTQ2xg5JM=; h=Cc:Date:From:Reply-To:Subject:To; b=M/oIGYJO1auMVjl+3BptigdmxtnvlXkI7bI2oFTHAJCfqxYnJrC7eAHCWpxIU6tFmm6 N1ZWWGOH2t7TAOrfuXKgiRimlsYF7hSQblmSFlcMocroxBNBbhnwO+e1XyUqVix8dV9Cu blksDwJ9TpXJrhD1Qr/9HADrRaozjEAe6hM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672934716973100005 Content-Type: text/plain; charset="utf-8" Recent GCC for ARM will complain when selecting the hard float ABI without specifying the FPU implementation, even when just running the preprocessor. This all happens under the hood, and we never bothered in the past, given that we don't emit floating point code anyway. However, to placate newer compilers, make it explicit that the floating point ABI is always the softfloat one, by moving the -msoft-float compiler option to PLATFORM_FLAGS. Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index fe8d5a8ea5e8..9bf771385e33 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1850,7 +1850,7 @@ NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debu= glink=3D$(DEBUG_DIR)/$(MODULE_N *_*_*_DTC_PATH =3D DEF(DTC_BIN) =20 DEFINE GCC_ALL_CC_FLAGS =3D -g -Os -fshort-wchar -fno-builtin -= fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno= -common -DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=3Dsoft -fn= o-pic -fno-pie +DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -fno-pic -fno-pie DEFINE GCC_LOONGARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mabi=3Dlp64d= -fno-asynchronous-unwind-tables -fno-plt -Wno-address -fno-short-enums -fs= igned-char -ffunction-sections -fdata-sections DEFINE GCC_ARM_CC_XIPFLAGS =3D -mno-unaligned-access DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables= -fno-pic -fno-pie -ffixed-x18 @@ -2364,7 +2364,7 @@ RELEASE_GCC5_X64_DLINK_FLAGS =3D DEF(GCC5_X64_DLI= NK_FLAGS) -flto -Os *_GCC5_ARM_ASM_FLAGS =3D DEF(GCC5_ARM_ASM_FLAGS) *_GCC5_ARM_DLINK2_FLAGS =3D DEF(GCC5_ARM_DLINK2_FLAGS) *_GCC5_ARM_DTCPP_FLAGS =3D DEF(GCC_DTCPP_FLAGS) -*_GCC5_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a +*_GCC5_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a -mfloat-abi=3Dsoft *_GCC5_ARM_PP_FLAGS =3D $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS) *_GCC5_ARM_RC_FLAGS =3D DEF(GCC_ARM_RC_FLAGS) *_GCC5_ARM_VFRPP_FLAGS =3D $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS) --=20 2.39.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98019): https://edk2.groups.io/g/devel/message/98019 Mute This Topic: https://groups.io/mt/96074680/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-