[Mingw-w64-public] [PATCH 2/2] crt: Fix __(w)getmainargs wrappers for msvcrt40.dll/msvcrt.dll

2025-01-06 Thread Pali Rohár
Enusure that the output arguments are not changed on the library __(w)getmainargs function failure. --- mingw-w64-crt/misc/msvcrt__getmainargs.c | 13 - mingw-w64-crt/misc/msvcrt__wgetmainargs.c | 13 - 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/mingw

[Mingw-w64-public] [PATCH 1/2] crt: Fix msvcrt40.dll __(w)getmainargs() ABI for Windows XP and new

2025-01-06 Thread Pali Rohár
All 32-bit Windows NT systems contains system OS library msvcrt40.dll which should be compatible with the original Visual C++ 4.0/4.1 msvcrt40.dll library. The Windows NT implementation of msvcrt40.dll is very simple, it just redirects function calls via symbol forwarding to msvcrt.dll library. S

[Mingw-w64-public] [PATCH 3/3] headers: Add ARM64EC context structures

2025-01-06 Thread Jacek Caban
From: Billy Laws Signed-off-by: Jacek Caban --- mingw-w64-headers/include/winnt.h | 128 ++ 1 file changed, 128 insertions(+) diff --git a/mingw-w64-headers/include/winnt.h b/mingw-w64-headers/include/winnt.h index df408e6c8..bd684d845 100644 --- a/mingw-w64-heade

[Mingw-w64-public] [PATCH 2/3] headers: Expose the ARM64 CONTEXT structure to all build architectures

2025-01-06 Thread Jacek Caban
This is necessary to accommodate ARM64EC, under which CONTEXT refers to the X86_64 context structure but the regular ARM64 context structure is still exposed as ARM64_NT_CONTEXT. Based on patch by Billy Laws. Signed-off-by: Jacek Caban --- mingw-w64-headers/include/winnt.h | 98 ++

[Mingw-w64-public] [PATCH 1/3] headers: Commonize _UNWIND_HISTORY_TABLE structure definition

2025-01-06 Thread Jacek Caban
From: Billy Laws This structure is the same across every architecture that uses it, so avoid needlessly duplicating its definition. Signed-off-by: Jacek Caban --- With this series, platform headers are useful on arm64ec target. mingw-w64-headers/include/winnt.h | 83 +--