[LLVMdev] llvm-link Patch

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sat Jul 30 21:11:43 PDT 2011

On 11-07-30 11:56 PM, Gregory Malecha wrote:
> For my application it is important that I get bit code out the other
> end and I couldn't get the linux linker to link llvm. Is there a way
> to do this with other tools? I noticed a TODO in the llvm-link.cpp
> file that said that this should be done so I figured that that would
> be the right place to do it.

The gold plugin can do this. The same plugin should also work with
recent versions of the regular gnu linker. See


for general instructions. To write a bc file the plugin option you
want is emit-llvm. 


More information about the llvm-dev mailing list