]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
CryptoPkg/IntrinsicLib: Fix possible unresolved external symbol issue
authorXiaoyu Lu <xiaoyux.lu@intel.com>
Wed, 29 May 2019 18:40:32 +0000 (18:40 +0000)
committerJian J Wang <jian.j.wang@intel.com>
Mon, 3 Jun 2019 00:28:01 +0000 (08:28 +0800)
commit96dbfad9b00b8ba85fad59a913eca6b5161d2fad
treefec96b32600b0084e7864dde0ecb2eaf97ea498a
parent7eee0488944fcf03f4faae2ccb05aa1939eaf905
CryptoPkg/IntrinsicLib: Fix possible unresolved external symbol issue

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1089

This is for the upcoming upgrade to OpenSSL_1_1_1b

Compiler optimization(Visual Studio) may automatically use _ftol2
instead of some type conversion. For example:

 OpensslLib.lib(drbg_lib.obj) : error LNK2001:
    unresolved external symbol __ftol2

This patch add _ftol2 function for the compiler intrinsic.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Signed-off-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
Tested-by: Gary Lin <glin@suse.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c [new file with mode: 0644]
CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf