<div dir="ltr">The RuntimeDyld side of this looks good to me.<div><br></div><div>Rafael - I'd appreciate your take on the ELF changes. If the "st_other" field in Elf_Sym_Base is going to be used solely for visibility (as it seems in this patch), should it be renamed to "st_visibility" ?</div>
<div><br></div><div>Cheers,</div><div>Lang.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 10:18 AM, Anthony Pesch <span dir="ltr"><<a href="mailto:inolen@gmail.com" target="_blank">inolen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I ran into the situation where I was loading multiple modules into the<br>
same MCJIT instance, and needed it to honor symbol visibility settings<br>
when populating the global symbol table.<br>
<br>
I went the route of adding a new SymbolRef::SF_Exported flag, which<br>
controls if a symbol is added to RuntimeDyld's internal<br>
GlobalSymbolTable. I believe I've set this flag correctly for ELF<br>
objects, but MachO was quite confusing to dig through. After doing a<br>
quite a few test compiles and scanning through Apple's MachO reference<br>
doc, it seems if N_PEXT is not set, the symbol is visible, but I'm not<br>
entirely confident in that.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - Anthony<br>
</font></span><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>