From d8aed3627e0656677411ad8ba8a11b8137f221fb Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 15 Apr 2013 07:08:46 +0200 Subject: [PATCH] Linker flag /LARGEADDRESSAWARE is not required with LLVM 3.3. With a recent commit support for the missing relocations was added. This change removes the flag from the linker command line. --- driver/linker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver/linker.cpp b/driver/linker.cpp index 052aa9ae..44da6320 100644 --- a/driver/linker.cpp +++ b/driver/linker.cpp @@ -237,8 +237,10 @@ static int linkObjToBinaryWin(bool sharedLib) // use address space layout randomization (ASLR) feature args.push_back("/DYNAMICBASE"); +#if LDC_LLVM_VER <= 302 // because of a LLVM bug args.push_back("/LARGEADDRESSAWARE:NO"); +#endif // output debug information if (global.params.symdebug)