[CPPRT][CRT][MSVCRT] Move __CxxFrameHandler3 to crt and export it on NT6

Previously it was in cpprt, which is a support library for C++, containing functions that are not exported by msvcrt. But since Vista __CxxFrameHandler3 is exported by msvcrt. Therefore move it to crt, and to satisfy pre-Vista configurations, also add it to msvcrtex.
This commit is contained in:
Timo Kreuzer 2020-09-24 07:49:16 +02:00
parent 310563aece
commit ce848e5c11
9 changed files with 58 additions and 22 deletions

View file

@ -36,9 +36,20 @@ if(ARCH STREQUAL "i386")
list(APPEND MSVCRTEX_SOURCE
math/i386/sqrtf.c)
endif()
if(MSVC AND DLL_EXPORT_VERSION LESS 0x600)
list(APPEND MSVCRTEX_ASM_SOURCE
except/i386/__CxxFrameHandler3.s)
list(APPEND MSVCRTEX_SOURCE
except/i386/CxxHandleV8Frame.c)
endif()
elseif(ARCH STREQUAL "amd64")
list(APPEND MSVCRTEX_ASM_SOURCE
except/amd64/chkstk_ms.s)
if(MSVC AND DLL_EXPORT_VERSION LESS 0x600)
list(APPEND MSVCRTEX_ASM_SOURCE
except/amd64/__CxxFrameHandler3.s
)
endif()
elseif(ARCH STREQUAL "arm")
list(APPEND MSVCRTEX_SOURCE
math/arm/__rt_sdiv.c