www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16660] New: Deprecate/Remove Optlink as Default Linker on


          Issue ID: 16660
           Summary: Deprecate/Remove Optlink as Default Linker on Windows
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: sprink.noreply gmail.com

It doesn't make sense to have Optlink as the default linker for 32-bit. It
doesn't use the format of the platform and it can't link 64-bit programs. You
have two different linkers being used by default. At the very least -m32mscoff
should be the default and there should be a flag switch to use Optlink. It's an
old linker that has some obscure bugs that won't be fixed. Replacing it with
another linker that supports OMF (not sure there is one) could be an option,
but even then I think COFF should still be the default.

Nov 03 2016