[cfe-dev] llvm-ld question

Rafael Espíndola rafael.espindola at gmail.com
Wed Aug 1 06:15:17 PDT 2012


I think by default it produces a script that run lli :-)

Note that llvm-ld never evolved into a real linker and got removed.
You can try a system linker that supports using LLVM. At the moment
those are the Apple liker, bfd ld and gold.

On 1 August 2012 06:52, Sun, Rui <rui.sun at intel.com> wrote:
> Hi, CLANGers,
>
>
>
> I used llvm-ar to package the object files for a program into several
> libraries, and used “llvm-ld <lib1> <llib2> …<libn>” trying to link them
> into a final bc file. But the result file is one with only 192 bytes without
> any real content. Does llvm-ld only accept object files in the command line?
>
>
>
> Thanks,
>
> Rui
>

Cheers,
Rafael




More information about the cfe-dev mailing list