[LLVMdev] Current state of the lld project

Rui Ueyama ruiu at google.com
Fri Nov 1 10:30:21 PDT 2013


On Fri, Nov 1, 2013 at 2:51 AM, Daniel Albuschat <d.albuschat at gmail.com>wrote:

> 2013/10/31 Daniel Albuschat <d.albuschat at gmail.com>:
> > on the lld main page at http://lld.llvm.org, it says:
> >
> > "lld is in its early stages of development.
> > It can currently self host on Linux x86-64 with -static."
> >
> > Is this information up-to-date?
>
> I made a quick test on a Windows 8 64bit system:
>
> test.c: int main () { return 42; }
> > clang -c test.c
> > lld -flavor link test.o
> > .\test.exe
> This application can not be run in Win32 mode.
>

I think you need to add /subsystem:console for a console application.

The current status of Windows port of LLD is that it can link a small
program like yours or little bit more complicated ones. I haven't tried to
self-host LLD, but I believe it cannot do yet. The linker depends on some
third party tools, namely cvtres.exe and rc.exe, for resource file. I want
to eliminate that dependency in the future, though.

Maybe I can produce correct results by specifying -target, but I
> couldn't get it to even accept -flavor and -target arguments in the
> same command line.
>
> > lld -target x86_64-pc-win32 -flavor link test.o
> warning: ignoring unknown argument: -flavor
>
> Greetings,
> Daniel Albuschat
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131101/aecfe4a4/attachment.html>


More information about the llvm-dev mailing list