Re: [Mingw-w64-public] [HELP] DLL relocation totally broken

2017-01-06 Thread Linda Zhang
Hi LRN, Thanks for your information, I've tested that gcc -shared is OK, but dllwrap produced duplicate and wrong relocation info. It looks like dllwrap has been broken for many years. I'm submitting bug there. I've been using dllwrap to compile dll files for so many years because I remember Min

Re: [Mingw-w64-public] [PATCH v11] crt: Recognize cygwin ptys in isatty

2017-01-06 Thread JonY
On 01/07/2017 05:52 AM, Mihail Konev wrote: > Signed-off-by: Mihail Konev > Moved-from: https://github.com/Alexpux/mingw-w64/pull/3 > Reference: https://cygwin.com/ml/cygwin-developers/2016-11/msg2.html > --- > v11: const the exported isatty > > mingw-w64-crt/Makefile.am

[Mingw-w64-public] [PATCH v11] crt: Recognize cygwin ptys in isatty

2017-01-06 Thread Mihail Konev
Signed-off-by: Mihail Konev Moved-from: https://github.com/Alexpux/mingw-w64/pull/3 Reference: https://cygwin.com/ml/cygwin-developers/2016-11/msg2.html --- v11: const the exported isatty mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/def-include/msvcrt-common.def.in |

Re: [Mingw-w64-public] [HELP] DLL relocation totally broken

2017-01-06 Thread LRN
On 07.01.2017 6:15, Linda Zhang wrote: > OS: Win7 SP1 > Toolchain: Mingw-w64 i686-6.2.0-release-win32-dwarf-rt_v5-rev1 > GCC: 4.8.x - 6.2.0 > Binutils: 2.21 - 2.25.1 > MinGW: official and w64, 4.x - 5.0.1 > Threading and except: all (dw2/sjlj/seh + win32/posix) > > Consider a dll whose base addres

Re: [Mingw-w64-public] [HELP] DLL relocation totally broken

2017-01-06 Thread Linda Zhang
Hi Norbert, -Wl,--dynamicbase only sets a flag in the DLL's PE header. But using this flag with EXE builds, the reloc info is still stripped and has no effect. Anyway, it has nothing to do with this bug. However, I found a bug in crtbegin.o in which the NULL pointers are accidently relocated, re

Re: [Mingw-w64-public] [PATCH v10] crt: Recognize cygwin ptys in isatty

2017-01-06 Thread JonY
On 01/07/2017 02:49 AM, Mihail Konev wrote: > On Sat, Dec 10, 2016 at 05:30:32AM +0500, Mihail Konev wrote: >> >> mingw-w64-crt/Makefile.am | 1 + >> mingw-w64-crt/def-include/msvcrt-common.def.in | 2 +- >> mingw-w64-crt/lib64/moldname-msvcrt.def| 2 +- >> mingw

Re: [Mingw-w64-public] [HELP] DLL relocation totally broken

2017-01-06 Thread Norbert Pfeiler
idk what the default should be or if anything is not working as expected but i use -Wl,--dynamicbase to get a pass in the windows app cert kit regarding ASLR On Sat, Jan 7, 2017 at 4:19 AM Linda Zhang wrote: > OS: Win7 SP1 > Toolchain: Mingw-w64 i686-6.2.0-release-win32-dwarf-rt_v5-rev1 > GCC: 4

[Mingw-w64-public] [HELP] DLL relocation totally broken

2017-01-06 Thread Linda Zhang
OS: Win7 SP1 Toolchain: Mingw-w64 i686-6.2.0-release-win32-dwarf-rt_v5-rev1 GCC: 4.8.x - 6.2.0 Binutils: 2.21 - 2.25.1 MinGW: official and w64, 4.x - 5.0.1 Threading and except: all (dw2/sjlj/seh + win32/posix) Consider a dll whose base address is overlapped with an existing module, so that the o

Re: [Mingw-w64-public] WinRT headers

2017-01-06 Thread LRN
On 06.01.2017 18:46, Jacek Caban wrote: > On 1/6/17 4:34 PM, LRN wrote: >> On 06.01.2017 13:12, LRN wrote: >>> Managed to compile and use cecil, wrote a C# program that churns the data >>> produced given by cecil and outputs IDL files. Worked on it until the IDL >>> files >>> it produced started t

Re: [Mingw-w64-public] [PATCH v10] crt: Recognize cygwin ptys in isatty

2017-01-06 Thread Mihail Konev
On Sat, Dec 10, 2016 at 05:30:32AM +0500, Mihail Konev wrote: > > mingw-w64-crt/Makefile.am | 1 + > mingw-w64-crt/def-include/msvcrt-common.def.in | 2 +- > mingw-w64-crt/lib64/moldname-msvcrt.def| 2 +- > mingw-w64-crt/stdio/isatty.c | 111 >

Re: [Mingw-w64-public] [PATCH] dwrite_1.h: Added IDWriteBitmapRenderTarget1 declaration.

2017-01-06 Thread JonY
On 11/03/2016 02:56 PM, Jacek Caban wrote: > Please review. > > --- > mingw-w64-headers/include/dwrite_1.h | 53 > > 1 file changed, 53 insertions(+) > > Looks good. signature.asc Description: OpenPGP digital signature ---

Re: [Mingw-w64-public] [PATCH] dwrite_1.h: Added IDWriteBitmapRenderTarget1 declaration.

2017-01-06 Thread Jacek Caban
Ping. On 11/3/16 3:56 PM, Jacek Caban wrote: > Please review. > > --- > mingw-w64-headers/include/dwrite_1.h | 53 > > 1 file changed, 53 insertions(+) > -- Check out the vibrant t

Re: [Mingw-w64-public] WinRT headers

2017-01-06 Thread Jacek Caban
On 1/6/17 4:34 PM, LRN wrote: > On 06.01.2017 13:12, LRN wrote: >> Managed to compile and use cecil, wrote a C# program that churns the data >> produced given by cecil and outputs IDL files. Worked on it until the IDL >> files >> it produced started to look legit. >> >> Then i fed an IDL file to

Re: [Mingw-w64-public] WinRT headers

2017-01-06 Thread LRN
On 06.01.2017 13:12, LRN wrote: > Managed to compile and use cecil, wrote a C# program that churns the data > produced given by cecil and outputs IDL files. Worked on it until the IDL > files > it produced started to look legit. > > Then i fed an IDL file to a fresh (from mingw-w64-tools git) wid

[Mingw-w64-public] Announcing v5.0.1

2017-01-06 Thread JonY
v5.0.1 is released! This is a bug fix release, notable changes since v5.0.0: * Don't use feature (__attribute__((gcc_struct))) that isn't supported on clang when compiling on clang thanks to David Wohlferd. * Various ARM math fixes thanks to Martin Storsjö * Removed some duplicate uuids defintio

Re: [Mingw-w64-public] WinRT headers

2017-01-06 Thread LRN
Managed to compile and use cecil, wrote a C# program that churns the data produced given by cecil and outputs IDL files. Worked on it until the IDL files it produced started to look legit. Then i fed an IDL file to a fresh (from mingw-w64-tools git) widl, and discovered that widl won't accept it.