Re: [Mingw-w64-public] invalid O_WRONLY read sets errno=EACCES instead of EBADF

2022-09-12 Thread Michel Zou
If I try to run the generated binaries from arch (mingw 10.0.0) on win10 I got the same errno=13, so I dont think it comes from wine. From: LIU Hao Sent: Tuesday, September 13, 2022 1:25 AM To: mingw-w64-public@lists.sourceforge.net ; Biswapriyo Nath Subjec

Re: [Mingw-w64-public] invalid O_WRONLY read sets errno=EACCES instead of EBADF

2022-09-12 Thread LIU Hao
在 2022/9/11 17:20, LIU Hao 写道: This is an ancient version though; I think I can check a more recent version a few days later on my XPS. Got the same erroneous result: ``` lh_mouse@lhmouse-xps ~/Desktop $ x86_64-w64-mingw32-gcc main.c lh_mouse@lhmouse-xps ~/Desktop $ ./a.exe EBADF

[Mingw-w64-public] Linking with libssp

2022-09-12 Thread Luca Bacci
Hello! Currently, the libraries provided by the mingw-w64 project do not provide stack smashing protection (aka ssp) routines. As such, if stack protection is turned on in the compiler, one has to manually link with the generic library 'libssp' provided by the compiler. Would it be possible to ma