<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Daniel,<div><br></div><div>Thanks for the reply. We use LinkInFile() to pull in input bitcode files that can include archives and link them into a single bitcode module which we operate on. I will look into how llvm-link achieves this. Part of this process includes subclassing llvm::Linker so that we can modify LinkModules to map individual symbols to their source bitcode module.</div><div><br></div><div>We do need to be able to pull objects (bitcode only) out of archives so I will look into the gold plugin as well.</div><div><br></div><div>- Chris</div><div><br></div><div><br><div><div>On Jan 29, 2013, at 3:56 PM, Daniel Dunbar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Chris,<div><br></div><div>What functions were you using, and what features of them were you using? If you just need to link individual bit codes together, you can do it in exactly the same way that llvm-link does (using Linker::LinkModules).</div>
<div><br></div><div style="">If you really need features like being able to pull objects out of archives, then you should use an LTO enabled linker (either the system linker on OS X, or gold + the gold plugin on Linux). See also:</div>
<div style=""> <a href="http://llvm.org/docs/LinkTimeOptimization.html">http://llvm.org/docs/LinkTimeOptimization.html</a></div><div style=""> <a href="http://llvm.org/docs/GoldPlugin.html">http://llvm.org/docs/GoldPlugin.html</a></div>
<div style=""><br></div><div style=""> - Daniel<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 11:31 AM, Chris Cadwallader <span dir="ltr"><<a href="mailto:ccadwallader@arxan.com" target="_blank">ccadwallader@arxan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">r172749 removed Linker/LinkArchives.cpp and Linker/LinkItems.cpp citing:<div><br></div>
<div><pre style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-left;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:pre-wrap;word-wrap:break-word;word-spacing:0px">This code is dead, and the "right" way to get this support is to use the
platform-specific linker-integrated LTO mechanisms, or the forthcoming LLVM
linker.</pre><div>Could someone please expand on what the "right way" is and these LTO mechanisms or where I can find further information? We used several functions in LinkItems.cpp to create a single bitcode module prior to processing.</div>
</div><div><br></div><div>Thanks,</div><div>Chris</div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></body></html>