[Mingw-w64-public] [PATCH] crt/delayimp: Make an IAT entry writeable before modifying it

2025-03-04 Thread LIU Hao
-- Best regards, LIU Hao From d9bcae01bb0cbfaa8b6d35ab5dd6d5e7b9b98edd Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Tue, 11 Feb 2025 10:34:14 +0800 Subject: [PATCH] crt/delayimp: Make an IAT entry writeable before modifying it Since Binutils 2.44, the import address table (abbr. IAT) is now re

[Mingw-w64-public] [PATCH] crt: Provide __p__daylight/__p__dstbias/__p__timezone/__p__tzname for UCRT builds

2025-03-04 Thread Pali Rohár
Symbol aliases __p__daylight/__p__dstbias/__p__timezone/__p__tzname are already present in crt-aliases.def.in for ucrtbase.dll builds since commit 469e8e419bbe ("crt: Provide __daylight(), __dstbias(), __timezone() and __tzname() functions for pre-msvcr80 builds") but are not present in api-ms-win-

[Mingw-w64-public] [PATCH] crt: Restore ftime symbol also for UCRT builds

2025-03-04 Thread Pali Rohár
Fixes commit ee481ee9392c ("crt: Move ftime symbol definition from _ftime.c to crt-aliases.def.in"). It added ftime symbol only to crt-aliases.def.in which is not used by api-ms-win-crt-* def files for UCRT builds. --- mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def.in | 2 ++ 1 file chang

[Mingw-w64-public] [PATCH 2/2] fenv: Use MSVC-compatible ABI for fenv.h functions.

2025-03-04 Thread Jacek Caban
Based on Wine code by Piotr Caban and Alexandre Julliard, who granted permission to use it under the mingw-w64 license. Unlike earlier versions, msvcr120 and UCRT implement fenv.h, but their representation differs from what mingw-w64 has used so far. fenv_t has a target-independent layout and fl

[Mingw-w64-public] [PATCH 1/2] crt: Don't use FE_* constants in truncl.

2025-03-04 Thread Jacek Caban
--- mingw-w64-crt/math/truncl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingw-w64-crt/math/truncl.c b/mingw-w64-crt/math/truncl.c index 3b47e53d1..d1b296661 100644 --- a/mingw-w64-crt/math/truncl.c +++ b/mingw-w64-crt/math/truncl.c @@ -3,7 +3,7 @@ * This file is

Re: [Mingw-w64-public] How would one create a 'Load Configuration' PE directory entry in MinGW/gcc executables?

2025-03-04 Thread Pete Batard via Mingw-w64-public
Hi Hao, Thanks for replying to this query. I'm afraid that I simply don't have the scope to go through a binutils change request. I was hoping that a link script might work to inject the binary section manually. If it is simply not possible for GNU binutils to inject custom PE directory entry