<div dir="ltr"><div dir="ltr">Hi Chris!<div>as a way forward, see for example FreeBSD's fdlopen:</div><div><a href="https://man.freebsd.org/cgi/man.cgi?fdlopen(3)">https://man.freebsd.org/cgi/man.cgi?fdlopen(3)</a></div><div>Generally, we need the dynamic loader to allow loading from alternative storage.</div><div>Atte.</div><div>Pedro.</div><div><br></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Em qui., 16 de jan. de 2025 às 15:48, Chris Vest <<a href="mailto:mr.chrisvest@gmail.com">mr.chrisvest@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>SymbolLookup and the older System.load/loadLibrary all make the assumption that any library we wish to load is located in a file on the, er, "native" file system.</div><div><br></div><div>I guess this is a limitation inherited from dlopen and LoadLibrary.</div><div><br></div><div>Many Java projects that include native code, then tend to package their native libraries as part of their jar files, and extract them to /tmp, or the like, before loading them.</div><div><br></div><div>This old practice is starting to become problematic, since /tmp is now often mounted with noexec for security.</div><div><br></div><div>So, is there some possible path forward that'll allow us to load libraries from e.g. a memory segment instead of a file?</div><div><br></div><div>Thanks,</div><div>Chris</div></div>
</blockquote></div><div><br></div></div>