<div dir="ltr">Hi Sean,<div><br></div><div>I'm not sure there's any great documentation other than the comments in RuntimeDyld.h.</div><div><br></div><div>The short version is that findSymbolInLogicalDylib is there to try to mimic the static linker's resolution rules (though from memory it's only roughly approximating that at the moment). When the JIT linker encounters an undefined (or common linkage) symbol it will first search for a definition using findSymbolInLogicalDylib. If that doesn't return a result then the JIT will fall back to searching findSymbol to find an external definition.</div><div><br></div><div>Most people just compile isolated IR modules, in which case you can ignore findSymbolInLogicalDylib and just fill in findSymbol. If you have a use-case for linking multiple objects as if they were all part of a dylib you can override findSymbolInLogicalDylib to search the symbols.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 6:05 AM, Sean Ogden via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13px;line-height:13px">Can someone point me to some information that will help me understand the difference between </span><span style="font-size:13px;color:rgb(0,0,0);line-height:9.65714px">RuntimeDyld::SymbolResolver::findSymbol and </span><span style="font-size:13px;color:rgb(0,0,0);line-height:9.65714px">RuntimeDyld::SymbolResolver::findSymbolInLogicalDylib?  What is a logical dylib?</span><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>