Re: [Mingw-w64-public] [PATCH] headers: fix mpeg2data.h methods orders

2025-03-03 Thread Steve Lhomme
On 03/03/2025 17:30, Biswapriyo Nath wrote: Could you share which project needs this. I can try to add the idl file. Hi, It's used by VLC. It's included via "mpeg2structs.h" in https://code.videolan.org/videolan/vlc/-/blob/master/modules/access/dtv/bdadefs.h ___

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

2025-03-03 Thread LIU Hao
在 2025-03-04 01:14, Pete Batard via Mingw-w64-public 写道: Considering that the current approach to fighting DLL side-loading vulnerabilities for MinGW generated executables is to manually run them through something like procmon, to see if they attempt to load DLLs from nonsystem dirs, and if so,

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

2025-03-03 Thread Pete Batard via Mingw-w64-public
Hi, By default, the gcc generated PE binaries do not appear to have directory entry #11, a.k.a 'Load Configuration', whereas MSVC generated ones do: $ objdump -x mingw/rufus.exe | grep "Load Configuration" Entry a Load Configuration Directory $ objdump -x vs2022/ruf

Re: [Mingw-w64-public] [PATCH] crt: Always include load config in mingwex."

2025-03-03 Thread Jacek Caban
On 3.03.2025 14:22, Alvin Wong wrote: I think both the current approach of lacking load config and the proposed solution are fragile. Instead of relying on unrelated linker warnings, if such a warning is necessary, it should be implemented properly, with a clear message that users can understan

Re: [Mingw-w64-public] [PATCH v2] crt: Always include load config in mingwex.

2025-03-03 Thread Jacek Caban
On 3.03.2025 14:44, Alvin Wong wrote: Thanks. I made a couple of inline comments, but otherwise it seems good to me. I sent a new version. Thanks, Jacek ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sou

[Mingw-w64-public] [PATCH v3] crt: Always include load config in mingwex.

2025-03-03 Thread Jacek Caban
This is mandatory on ARM64EC and also required on AArch64 for ARM64X builds. Instead of extending the existing logic, unify it by always including it in mingwex. Fill CF Guard fields with zeroes when CF Guard is not enabled in CRT builds. This leverages existing LLD load config validation warnin

Re: [Mingw-w64-public] [PATCH] headers: fix mpeg2data.h methods orders

2025-03-03 Thread Biswapriyo Nath
Could you share which project needs this. I can try to add the idl file. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH v2] crt: Always include load config in mingwex.

2025-03-03 Thread Alvin Wong via Mingw-w64-public
On 3/3/2025 4:22, Jacek Caban wrote: This is mandatory on ARM64EC and also required on AArch64 for ARM64X builds. Instead of extending the existing logic, unify it by always including it in mingwex. Fill CF Guard fields with zeroes when CF Guard is not enabled in CRT builds. This leverages exi

Re: [Mingw-w64-public] [PATCH] crt: Always include load config in mingwex."

2025-03-03 Thread Alvin Wong via Mingw-w64-public
On 3/3/2025 4:32, Jacek Caban wrote: On 2.03.2025 10:14, Alvin Wong wrote: On 1/3/2025 20:25, Jacek Caban wrote: This is mandatory on ARM64EC and also required on AArch64 for ARM64X builds. Instead of extending the existing logic, unify it by always including it in mingwex. In practice, this