Re: [Mingw-w64-public] How to build the GCC cross-compiler?

2017-08-23 Thread David Grayson
Zebedia: Something is very wrong if the mingw headers for your cross compiler are installed directly in /usr/local/include on your Linux machine. Since those headers don't apply to software compiled for your Linux machine, they should be in a directory named something like i386-w64-mingw32. Now l

[Mingw-w64-public] How to build the GCC cross-compiler?

2017-08-23 Thread Zebediah Figura
Hello, I am interested in implementing, or helping to implement, support for 16-bit code and NE executables in mingw. I am trying to build the gcc cross-compiler (i386-w64-mingw32-gcc) in accordance with the instructions at https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win6

Re: [Mingw-w64-public] [PATCH] Handle __CTOR_LIST__ for clang

2017-08-23 Thread David Grayson
Martell: OK, I looked at that link briefly. I think I understand what you're worried about here: the markers that we have at the beginning and end of our constructor/destructor sections might be removed by the linker of clang or GCC if it is determined that no code is actually referencing those va

Re: [Mingw-w64-public] [PATCH] Handle __CTOR_LIST__ for clang

2017-08-23 Thread Martell Malone
Hey David, I came across this today which might be of interest to our discussion, while it is not related directly to the problem you mentioned it is similar. https://reviews.llvm.org/D37059 I will follow up with a patch for binutils to add __CTOR_END__ and __DTOR_END__ but it is interesting to no