[llvm-dev] lld COFF auto-import feature

Rui Ueyama via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 18 02:42:00 PDT 2016


On Fri, Mar 18, 2016 at 8:50 AM, Sangjin Han via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I read the thread (
> http://lists.llvm.org/pipermail/llvm-dev/2016-February/096115.html ).
> I think the wonderful feature of the MinGW/Cygwin ld is the option
> --enable-auto-import.
> The option is limited to COFF, but LINK.exe doesn't have it.
> Could we add the feature to lld-link ?
> If it is possible, many people will change the coding pattern for using
> DLL. -- no more if-def declspec(dllimport)
>

Technically we can add the feature, but I'm skeptical if it's worth the
cost associated with it. Also, if you rely on that feature, then your
program is no longer linkable with the MSVC linker, so I'd expect that most
people would continue using declspec(dllimport) anyways. That means the
feature wouldn't be used often.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/3b058aa1/attachment.html>


More information about the llvm-dev mailing list