Hi Ard, it explain the reason at https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1237?view=vs-2019. It can use ```MSFT:*_*_*_DLINK_FLAGS = /include:_fltused``` to resolve the error, but it is complex.
Best Regards Guomin > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ard > Biesheuvel > Sent: Friday, April 17, 2020 4:15 PM > To: Jiang, Guomin <guomin.ji...@intel.com>; Ard Biesheuvel > <ard.biesheu...@arm.com> > Cc: devel@edk2.groups.io; Ni, Ray <ray...@intel.com>; Kinney, Michael D > <michael.d.kin...@intel.com>; ler...@redhat.com; mac...@microsoft.com > Subject: Re: [edk2-devel] [PATCH] CryptoPkg/FltUsedLib: Add FltUsedLib for > float. > > On Tue, 14 Apr 2020 at 09:01, Jiang, Guomin <guomin.ji...@intel.com> > wrote: > > > > Summarize current status: > > > > Problem Statement: > > Openssl require _fltused to be defined as a constant anywhere floating > point is used. > > It may use float out of edk2 tree and need _fltused, for example, > Microsoft’s OnScreenKeyboard and UiToolKit. > > > > Current Proposal as below: > > > > Proposal 1: Add FltUsed.c into exist library > > Detail: Add FltUsed.c into EntryPointLib(PEIM, DXE). > > Recommend: Ard Biesheuvel <ard.biesheu...@linaro.org> > > Approve: Laszlo Ersek ler...@redhat.com > > Netual: Michael D Kinney <michael.d.kin...@intel.com> > > Benefit: Doesn’t need modify every .dsc description file. > > Defection: I test that it will fail because of /GL option, the error > > show fatal error LNK1237: during code generation, compiler introduced > > reference to symbol '_fltused' defined in module > > 'UefiApplicationEntryPoint.lib(FltUsed.obj)' compiled with /GL > > > > Can you elaborate on this issue? What does /GL do, and why is it throwing > this error? > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#57894): https://edk2.groups.io/g/devel/message/57894 Mute This Topic: https://groups.io/mt/72648022/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-