Hermetic Java (static image packaging/formatting) investigation and proposal
Florian Weimer
fweimer at redhat.com
Mon Feb 13 12:00:56 UTC 2023
* Alan Bateman:
> On 13/02/2023 09:58, Florian Weimer wrote:
>> :
>>> Yeah, the loadLibrary and friends need to be able look up built-in
>>> libraries in the executable (within the image ELF section). The
>>> existing JDK code is already able to handle built-in libraries
>>> (partially). Please see more details for built-in native support in
>>> earlier comments.
>> I believe that will require a custom glibc patch that has not been
>> upstreamed.
> JEP 178 [1] added support for statically linking native libs. It might
> be that this proposal builds on that.
I was under the impression that it's about loading a separate DSO
embedded in the main executable file, without copying out to the file
system first. As far as I understand it, there is a mechanism that
deals with this for the JAR case, but it requires the extra copy.
Thanks,
Florian
More information about the leyden-dev
mailing list