From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com []) by mx.groups.io with SMTP id smtpd.web11.659.1587611274407833926 for ; Wed, 22 Apr 2020 20:07:55 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: guomin.jiang@intel.com) IronPort-SDR: TI4sov7u8asE/p8C/W/bflKd4oLVva72uqnccPC+Ne8O759HY6ACnQ4T18OoGcf11r1HYJELGC 4D3dgHChEwWA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 20:07:54 -0700 IronPort-SDR: qhVZPCfIXfbegF+P7CgFmRPTlf7ybfzk1J1JY37NBK4V9/rTQI6R7O3WQzyeeB1y/AJirZLzen ffXbgsnVstvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,305,1583222400"; d="scan'208";a="280247364" Received: from guominji-mobl.ccr.corp.intel.com ([10.238.5.173]) by fmsmga004.fm.intel.com with ESMTP; 22 Apr 2020 20:07:53 -0700 From: "Guomin Jiang" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao Subject: [PATCH v2 1/2] MdePkg/BaseLib: Add _fltused to feed MSVC compiler Date: Thu, 23 Apr 2020 11:07:50 +0800 Message-Id: <20200423030751.2178-2-guomin.jiang@intel.com> X-Mailer: git-send-email 2.25.1.windows.1 In-Reply-To: <20200423030751.2178-1-guomin.jiang@intel.com> References: <20200423030751.2178-1-guomin.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2596 Out of edk2 may need _fltused symbol such as mu_plus OnScreenKeyboard and UiToolKit. those driver will define the symbol to feed MSVC, but it will conflict with CryptoPkg. so move the symbol to BaseLib. Signed-off-by: Guomin Jiang Cc: Michael D Kinney Cc: Liming Gao --- MdePkg/Library/BaseLib/BaseLib.inf | 3 ++- MdePkg/Library/BaseLib/FltUsed.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 MdePkg/Library/BaseLib/FltUsed.c diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/Ba= seLib.inf index 3586beb0ab..bab31c07c7 100644 --- a/MdePkg/Library/BaseLib/BaseLib.inf +++ b/MdePkg/Library/BaseLib/BaseLib.inf @@ -1,7 +1,7 @@ ## @file=0D # Base Library implementation.=0D #=0D -# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
= =0D +# Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.
= =0D # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
= =0D # Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
=0D #=0D @@ -60,6 +60,7 @@ String.c=0D FilePaths.c=0D BaseLibInternals.h=0D + FltUsed.c | MSFT=0D =0D [Sources.Ia32]=0D Ia32/WriteTr.nasm=0D diff --git a/MdePkg/Library/BaseLib/FltUsed.c b/MdePkg/Library/BaseLib/FltU= sed.c new file mode 100644 index 0000000000..c065594266 --- /dev/null +++ b/MdePkg/Library/BaseLib/FltUsed.c @@ -0,0 +1,14 @@ +/** @file=0D + Declare _fltused symbol for MSVC=0D +=0D + MSVC need this symbol for float, andd it here to feed MSVC. it may remov= e=0D + if MSVC not need it any more.=0D +=0D + Copyright (c) 2020 - 2020, Intel Corporation. All rights reserved.
=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +**/=0D +=0D +//=0D +// Just for MSVC float=0D +//=0D +int _fltused =3D 0x1;=0D --=20 2.25.1.windows.1