Re: [PATCH] Fix -unawareness of large-addresses on mingw (#8520)

2014-06-08 Thread kyra
There is a problem here. While setting LARGEADDRESSAWARE apparently works for GHC *itself*, we can't be sure it works for any GHC-generated executable because it can potentially be linked with some *foreign* code which is not LARGEADDRESSAWARE compatible (see https://ghc.haskell.org/trac/ghc/

Re: [PATCH] Fix -unawareness of large-addresses on mingw (#8520)

2014-06-08 Thread Simon Marlow
If someone validates this on Windows it could go in. Add it to #8520 and put the ticket in the patch state? On 04/06/2014 10:15, kyra wrote: LARGEADDRESSAWARE flag if set in executable's header tells the OS that the application can handle addresses larger than 2GB. For 32-bit executables it i

Re: [PATCH] Fix -unawareness of large-addresses on mingw (#8520)

2014-06-04 Thread kyra
LARGEADDRESSAWARE flag if set in executable's header tells the OS that the application can handle addresses larger than 2GB. For 32-bit executables it is disabled usually. To enable it we must tell linker to enable it or manually edit an executable - for example, peflags of editbin (from Micro

Re: [PATCH] Fix -unawareness of large-addresses on mingw (#8520)

2014-06-04 Thread Simon Marlow
I don't know what this does, and there doesn't seem to be any info in #8520 either. Could you add the patch to the ticket, and help us out by saying why this fixes the problem (and if possible, explain why it won't break anything else)? On 03/06/2014 07:06, transfuturist wrote: --- compil

[PATCH] Fix -unawareness of large-addresses on mingw (#8520)

2014-06-02 Thread transfuturist
--- compiler/main/SysTools.lhs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs index dc9642d..1cf1155 100644 --- a/compiler/main/SysTools.lhs +++ b/compiler/main/SysTools.lhs @@ -740,6 +740,7 @@ getLinkerInfo' dflags = do