[PATCH] D37761: [LLD] [MinGW] Support creating DLLs with a def file

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 13:54:24 PDT 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D37761#868521, @ruiu wrote:

> I wonder if MSVC link.exe automatically detects .def files as well. If so, we need to implement the same feature to COFF instead of tweaking the MinGW driver.


Doesn't seem so:

  $ link -dll -out:lib.dll lib.obj lib.def
  Microsoft (R) Incremental Linker Version 14.10.25017.0
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  lib.def : fatal error LNK1107: invalid or corrupt file: cannot read at 0x1E


https://reviews.llvm.org/D37761





More information about the llvm-commits mailing list