Commit Graph

166 Commits

Author SHA1 Message Date
LIU Hao
656b9da302 crt: Unify bcryptprimitives.def for ARM and ARM64
Signed-off-by: LIU Hao <lh_mouse@126.com>
2024-07-28 20:16:32 +08:00
Pali Rohár
3c573036b2 crt: msvcr120d.def.in: Add ARM32 import library
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-07-24 13:24:19 +03:00
Pali Rohár
87ce4f44d5 crt: msvcr120.def.in: Add ARM32 import library
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-07-24 13:24:19 +03:00
Pali Rohár
b8d9df769c crt: msvcr110d.def.in: Add ARM32 import library
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-07-24 13:24:19 +03:00
Pali Rohár
e5122b8e5b crt: msvcr110.def.in: Update ARM32 version
* Regenerate symbols from the original ARM32 version
* Add symbols introduced in Visual C++ 2012 Update 1
* Include aliases from crt-aliases.def.in

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-07-24 13:24:19 +03:00
Pali Rohár
f5bc0640a4 crt: Remove ARM32 msvcr120_clr0400.def file
msvcr120_clr0400.dll is private copy of msvcr120.dll library for .NET CLR
runtime. It is not for application usage. Applications should use
msvcr120.dll instead of msvcr120_clr0400.dll.

So remove msvcr120_clr0400.def file and in future changes include
msvcr120.def file.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-07-24 13:24:19 +03:00
Pali Rohár
82312bcf4a crt: Move __ms_* symbol aliases to def-include/msvcrt-common.def.in
def-include/msvcrt-common.def.in is included into every msvcr*.def.in file.
So move them all common __ms_* symbol aliases which removes definition
duplication.

msvcr* library before version 8.0 have symbols swprintf/vswprintf which
represents pre-C95 variants of these functions without maxlen argument.
Since version 8.0, symbols swprintf/vswprintf are not present anymore,
they were renamed and have have leading underscore.

Distinguish aliased symbol by a new PRE_C95_SWPRINTF macro in .def.in file.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-04-25 13:55:30 +03:00
Mark Harmstone
f40984e425 crt: Add cut-down rpcrt4 to windowsapp
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-16 10:52:06 +02:00
Mark Harmstone
fa9b42f7ce crt: Add cut-down oleaut32 to windowsapp
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-16 10:52:06 +02:00
Mark Harmstone
ffe9d251d6 crt: Add onecoreuap_apiset
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-16 10:48:53 +02:00
Mark Harmstone
8164cfd647 crt: Add xinputuap
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:44 +08:00
Mark Harmstone
7f76103759 crt: Add coremessaging
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:44 +08:00
Mark Harmstone
2801fb7236 crt: Add windows.networking for all architectures
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:43 +08:00
Mark Harmstone
66f693e452 crt: Add windows.data.pdf for all architectures
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:43 +08:00
Mark Harmstone
7b77f735f1 crt: Add rometadata for all architectures
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:43 +08:00
Mark Harmstone
e76de61d34 crt: Add windows.ai.machinelearning
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
b021d60c45 crt: Add inkobjcore
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
32a4a3aaca crt: Add hrtfapo
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
a9966ea870 crt: Add dxcore
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
d911c04a46 crt: Add directml
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
97b29c19a5 crt: Add dnsperf
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-12-12 22:07:42 +08:00
Mark Harmstone
e15c386750 crt: Add chakrart
Note that the DLL name is chakra.dll, but unusually the library name is
chakrart.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:38 +02:00
Mark Harmstone
72c92d526f crt: Fix esent
Add missing functions, add for aarch64, fix mistakes in x86 version

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:38 +02:00
Mark Harmstone
a798b22450 crt: Add webservices for all architectures
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:37 +02:00
Mark Harmstone
d9cd8cba7d crt: Add msajapi
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:37 +02:00
Mark Harmstone
ed786044a8 crt: Add icu
Add the library file for Microsoft's version of icu, which is bundled with
later releases of Windows 10. This shouldn't conflict with the official
releases, which have suffixes on the DLL and library names.

No lib32 override for this one, as unusually the functions are all
cdecl.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:36 +02:00
Mark Harmstone
1dfed5d2ac crt: Add onecore
Note that this isn't yet exhaustive. Notably the official versions of
onecore, onecoreuap, and windowscoreheadless all include cut-down
versions of user32 etc., which I'm going to handle with a later patch.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:36 +02:00
Martin Storsjö
572a58a8b5 crt: Provide dhcpcsvc6 for arm64 too
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-12-04 15:33:36 +02:00
Mark Harmstone
5c1cd28427 crt: Add windowscoreheadless_apiset
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-11-09 15:12:30 +02:00
Mark Harmstone
647c5f0d59 crt: Add onecore_apiset
I've left in FIXMEs for the new API sets for now, which will follow
properly in later patches.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-10-25 12:04:46 +03:00
Mark Harmstone
ab57c341ce crt: Add libmincore_downlevel.a
This exactly matches mincore_downlevel.lib in WinSDK 10.0.19041.0.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-10-24 14:30:57 +03:00
Mark Harmstone
e2753b9726 crt: Add libdiagnosticdataquery.a
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-10-11 14:26:45 +03:00
Biswapriyo Nath
31554d262c crt: Add uiautomationcore import library
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-10-02 02:25:21 +08:00
Oleg Tolmatcev
6d66598642 crt: add xaudio2_9.def
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-09-21 23:06:14 +08:00
Biswapriyo Nath
3e7fec36c4 crt: Move wer to lib-common
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-08-09 23:17:18 +08:00
Biswapriyo Nath
e07cb63ad4 crt: Add mi import library
Required for https://github.com/cloudbase/PyMI.git

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2023-04-04 23:21:34 +08:00
Pali Rohár
fc91e45c18 crt: Define llabs/imaxabs/_abs64 functions for all msvcrt builds
Function _abs64() is available since msvcr80.dll on 64-bit systems and
since msvcr90.dll on 32-bit systems. It is also available on 64-bit version
of msvcrt.dll system library. Function llabs() is available since
msvcr100.dll and function imaxabs() since msvcr120.dll.

For older msvcrt versions which do not provide _abs64() function, include
mingw-w64 implementation from imaxabs.c file (by merging it with abs64.c
file) and for new msvcrt version define just symbol aliases. Do not pack
mingw-w64 implementation of imaxabs() into libmingwex.a because
libmingwex.a takes precedence over libmsvcr*.a.

Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-12-19 22:15:11 +08:00
Pali Rohár
c9490c0b77 crt: Define lldiv/imaxdiv functions for all msvcrt builds
Function lldiv() is available since msvcr100.dll and function imaxdiv()
since msvcr120.dll. So for msvcr100.dll and msvcr110.dll define imaxdiv()
as alias to lldiv(). And for older msvcrt versions include mingw-w64
implementation from imaxdiv.c. Do not pack mingw-w64 implementation of
imaxdiv() into libmingwex.a because libmingwex.a takes precedence over
libmsvcr*.a.

Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-12-19 22:14:55 +08:00
LIU Hao
7af010a89a Revert "crt: Mark atexit() as DATA because it's always overridden"
This reverts commit 6f6cb38cb8.
2022-12-08 14:20:38 +08:00
LIU Hao
51d629b8bf Revert "crt: Provide wrappers for *exit() in libmingwex"
This reverts commit 2262488410.
2022-12-08 14:20:04 +08:00
LIU Hao
2262488410 crt: Provide wrappers for *exit() in libmingwex
This should have no effect on functionality, but allows further
customization of them.

Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-12-04 21:27:14 +08:00
LIU Hao
6f6cb38cb8 crt: Mark atexit() as DATA because it's always overridden
Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-12-04 21:27:14 +08:00
Biswapriyo Nath
1092e5bf9c crt: Move pdh to lib-common
Required for python-psutil

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-11-27 22:21:39 +08:00
Alvin Wong via Mingw-w64-public
c978adbe5b crt: Move xmllite to lib-common
Signed-off-by: Alvin Wong <alvin@alvinhc.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-10-14 14:52:16 +03:00
Martin Storsjö
1770580bca crt: Move cryptbase.def to lib-common, include it in libmincore.a
This library contains SystemFunction036 (aka RtlGenRandom) and a
bunch of other similarly opaque SystemFunction0xx.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-10-04 11:32:32 +03:00
Biswapriyo Nath
54fd3075b9 crt: Move mscms to lib-common
Required for Inkscape

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-08-16 14:34:14 +08:00
Biswapriyo Nath
28a293803b crt: Move vfw32 to lib-common
Required for AviSynthPlus project.

Hook up the def files for arm64, but not for arm32 (because those
DLLs actually don't exist for that architecture).

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-05-27 00:30:29 +03:00
Biswapriyo Nath
bb52167835 crt: Move bthprops to lib-common
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-03-27 15:39:01 +08:00
Jeremy Drake
456b8d78be fwpuclnt: update to Windows 11 exports
and build import library for arm64.

Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-03-10 23:29:45 +02:00
Biswapriyo Nath
148eb6c5b9 crt: Add webauthn import library
Tested with libfido2 project

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-03-10 21:40:52 +08:00