Hi llvm team,<div><br></div><div>A few days ago, I have submitted a proposal to extend lib/Linker and (possibly) llvm-ld to be able to link with bitcode "so": special bitcode stubs for native dynamic libraries to allow linking against them on the bitcode level, which is important for cases when using llvm gold plugin is not desirable. See the thread for more details: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-December/046055.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-December/046055.html</a></div>
<div><br></div><div>The attachment contains the first patch for initial support of bitcode ".so" files. It's not complete in terms of features but it's the minimal viable change to lib/Linker to allow to implement at least basic "dynamic" linking in llvm-ld or similar tools.</div>
<div><br></div><div>Please, let me know if the approach is valid and which issues should be addressed before the commit.</div><div><br></div><div>thanks,</div><div>krasin</div>