mirror of https://github.com/acidanthera/audk.git
5d7a1d63c0
The compiler (visual studio) may optimize some explicit strcmp call in openssl source to use the intrinsic memcmp call. In CrtLibSupport.h, we just use #define to mapping memcmp to CompareMem API. So in Link phase, this kind of intrinsic optimization will cause the "unresolved external symbol" error. For example: OpensslLib.lib(v3_utl.obj) : error LNK2001: unresolved external symbol _memcmp This patch will keep the memcmp mapping, and provide extra Intrinsic memcmp wrapper to satisfy the symbol link. Cc: Ting Ye <ting.ye@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long <qin.long@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> |
||
---|---|---|
.. | ||
internal | ||
openssl | ||
sys | ||
CrtLibSupport.h | ||
assert.h | ||
ctype.h | ||
errno.h | ||
limits.h | ||
memory.h | ||
stdarg.h | ||
stddef.h | ||
stdio.h | ||
stdlib.h | ||
string.h | ||
strings.h | ||
syslog.h | ||
time.h | ||
unistd.h |