crt: Define _setjmp and _setjmpex aliases for __intrinsic_setjmp and __intrinsic_setjmpex symbols in vcruntime140* def files Fixes linker errors on amd64, arm64 and arm64ec: ld.lld: error: undefined symbol: __declspec(dllimport) _setjmp ld.lld: error: undefined symbol: __declspec(dllimport) _setjmpex when using setjmp() macro from mingw-w64 setjmp.h header file and linking with ucrt_vcruntime140 import library (instead of ucrt). Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/lib-common/vcruntime140-common.def.in b/mingw-w64-crt/lib-common/vcruntime140-common.def.in index 4a94a78..880635d 100644 --- a/mingw-w64-crt/lib-common/vcruntime140-common.def.in +++ b/mingw-w64-crt/lib-common/vcruntime140-common.def.in
@@ -34,7 +34,9 @@ __current_exception __current_exception_context F_NON_ARM64(__intrinsic_setjmp) +F_NON_ARM64(_setjmp == __intrinsic_setjmp) F_NON_I386(__intrinsic_setjmpex) +F_NON_I386(_setjmpex == __intrinsic_setjmpex) F_ARM32(__jump_unwind) __processing_throw __report_gsfailure